Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KSZK
Ansible
Roles
Base
Commits
5ec8b2f4
Commit
5ec8b2f4
authored
Sep 16, 2021
by
rlacko
💬
Browse files
Fix whens and skip authorized keys if keys_url is not defined
parent
ff565dd4
Changes
3
Hide whitespace changes
Inline
Side-by-side
defaults/main.yml
View file @
5ec8b2f4
...
...
@@ -2,27 +2,22 @@
timezone
:
Europe/Budapest
na
:
"
https://git.sch.bme.hu/kszk/sysadmin/kubernetes/base-ansible-role"
hostname
:
"
{{
inventory_hostname
}}"
update
:
yes
setup_basic_packages
:
yes
disable_floppy
:
yes
disable_multipath
:
yes
vmware_multipath
:
yes
motd_text
:
KSZK Host
# motd_text: KSZK Host
ssh
:
port
:
10022
pubkeyAuthentication
:
"
yes"
passwordAuthentication
:
"
no"
permitRootLogin
:
"
without-password"
allow
:
#
users: root, ubuntu
#
groups: root
#
passwordLoginFrom:
#
custom:
#
enabled: False
#
ipList: "192.168.42.0/24"
#
ssh:
#
port: 10022
#
pubkeyAuthentication: "yes"
#
passwordAuthentication: "no"
#
permitRootLogin: "without-password"
#
allow:
#
users: root, ubuntu
#
groups: root
#
passwordLoginFrom:
#
custom:
#
enabled: False
#
ipList: "192.168.42.0/24"
users
:
#
users:
#- name: kszk
# comment: "kszk@sch.bme.hu" # optional
# sudo: yes
...
...
tasks/main.yml
View file @
5ec8b2f4
...
...
@@ -8,19 +8,16 @@
tags
:
[
hostname
]
-
name
:
Upgrade packages
when
:
update is defined and update
import_tasks
:
update.yml
tags
:
[
update
]
-
name
:
Setup admin users
when
:
user is defined
include_tasks
:
setup_user.yml
loop
:
"
{{
users
}}"
loop_control
:
loop_var
:
user
-
name
:
Install basic packages
when
:
setup_basic_packages is defined and setup_basic_packages
import_tasks
:
packages.yml
tags
:
[
packages
]
...
...
@@ -35,11 +32,9 @@
tags
:
[
ssh
]
-
name
:
Disable floppy
when
:
disable_floppy is defined and disable_floppy
include_tasks
:
floppy.yaml
-
name
:
Fix multipath UUID VMWare errors
when
:
vmware_multipath is defined and vmware_multipath
include_tasks
:
multipath.yaml
-
name
:
Update netplan config
...
...
tasks/setup_user.yml
View file @
5ec8b2f4
...
...
@@ -41,3 +41,4 @@
key
:
"
{{
user.keys_url
}}"
manage_dir
:
yes
exclusive
:
yes
when
:
user.keys_url is defined
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment