We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9afe057 commit 9a440c8Copy full SHA for 9a440c8
defaults/main.yaml
@@ -5,6 +5,10 @@ system:
5
{%- else -%}
6
wheel
7
{%- endif -%}
8
+ sshd:
9
+ config:
10
+ PasswordAuthentication: no
11
+ PermitRootLogin: no
12
features:
13
sshd: no
14
proserver_fact: no
tasks/authorized_keys.yaml
@@ -23,6 +23,8 @@
23
24
- name: Add authorized keys
25
loop: "{{ user_authorized_keys }}"
26
+ failed_when: "{{ add_authorized_keys.failed and not ansible_check_mode }}"
27
+ register: add_authorized_keys
28
loop_control:
29
label: '{{ item.user }} public_keys="{{ item.key }}"'
30
ansible.posix.authorized_key:
0 commit comments