1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Remove "| bool" 1.5yrs later, as Ansible 2.10 changed conditional_bare_variables default

This commit is contained in:
root 2020-10-16 16:46:19 -04:00
parent 2968a8a20e
commit ca171fbc1c
158 changed files with 2072 additions and 2072 deletions

View file

@ -4,7 +4,7 @@
name: "{{ sshd_service }}"
enabled: yes
state: restarted
when: sshd_enabled | bool
when: sshd_enabled
- name: Disable & Stop ssh daemon ({{ sshd_service }}) if not sshd_enabled
systemd:

View file

@ -20,7 +20,7 @@
regexp: '^PermitRootLogin'
line: 'PermitRootLogin without-password'
state: present
#when: sshd_enabled | bool
#when: sshd_enabled
- name: mkdir /root/.ssh
file:
@ -29,7 +29,7 @@
owner: root
group: root
mode: '0700'
#when: sshd_enabled | bool
#when: sshd_enabled
- name: Install dummy root keys as placeholder
copy:
@ -39,7 +39,7 @@
group: root
mode: '0600'
force: no
#when: sshd_enabled | bool
#when: sshd_enabled
# RECORD sshd AS INSTALLED