summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cec549d)
Those trigger a warning in Ansible 2.4 and later
dest: /etc/ssh/sshd_config
regexp: "^AllowUsers"
line: "AllowUsers {{ ' '.join([ 'root' ] | union(sshd_allowusers_group | default([])) | union(sshd_allowusers_host | default([]))) }}"
dest: /etc/ssh/sshd_config
regexp: "^AllowUsers"
line: "AllowUsers {{ ' '.join([ 'root' ] | union(sshd_allowusers_group | default([])) | union(sshd_allowusers_host | default([]))) }}"
- when: "{{ sshd_allowusers_set | default(true) }}"
+ when: sshd_allowusers_set | default(true)
notify: restart ssh
- name: limit allowed users (2/2)
notify: restart ssh
- name: limit allowed users (2/2)
dest: /etc/ssh/sshd_config
regexp: "^AllowUsers"
state: absent
dest: /etc/ssh/sshd_config
regexp: "^AllowUsers"
state: absent
- when: "not {{ sshd_allowusers_set | default(true) }}"
+ when: not sshd_allowusers_set | default(true)
notify: restart ssh
- name: Set authorized keys for root user
notify: restart ssh
- name: Set authorized keys for root user