dir and touch in wrong order
This commit is contained in:
parent
96568a25b2
commit
dd3c7f9c4f
@ -25,6 +25,15 @@
|
|||||||
when:
|
when:
|
||||||
- ansible_distribution_major_version == '8'
|
- ansible_distribution_major_version == '8'
|
||||||
|
|
||||||
|
- name: Ensure sshd_config.d dir exists
|
||||||
|
ansible.builtin.file:
|
||||||
|
state: directory
|
||||||
|
path: "/etc/ssh/sshd_config.d"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0700'
|
||||||
|
notify: restart_sshd
|
||||||
|
|
||||||
- name: Ensure an empty file exists
|
- name: Ensure an empty file exists
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
state: touch
|
state: touch
|
||||||
@ -36,15 +45,6 @@
|
|||||||
when:
|
when:
|
||||||
- ansible_distribution_major_version == '8'
|
- ansible_distribution_major_version == '8'
|
||||||
|
|
||||||
- name: Ensure sshd_config.d dir exists
|
|
||||||
ansible.builtin.file:
|
|
||||||
state: directory
|
|
||||||
path: "/etc/ssh/sshd_config.d"
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: '0700'
|
|
||||||
notify: restart_sshd
|
|
||||||
|
|
||||||
- name: Default Modular Configuration
|
- name: Default Modular Configuration
|
||||||
when:
|
when:
|
||||||
- (ansible_facts['distribution'] == 'Fedora') or
|
- (ansible_facts['distribution'] == 'Fedora') or
|
||||||
|
Loading…
Reference in New Issue
Block a user