Commit 5ec8b2f4 authored by rlacko's avatar rlacko 💬
Browse files

Fix whens and skip authorized keys if keys_url is not defined

parent ff565dd4
......@@ -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
......
......@@ -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
......
......@@ -41,3 +41,4 @@
key: "{{ user.keys_url }}"
manage_dir: yes
exclusive: yes
when: user.keys_url is defined
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment