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:
parent
2968a8a20e
commit
ca171fbc1c
158 changed files with 2072 additions and 2072 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue