mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-12-27 13:10:55 +00:00
dir and touch in wrong order
This commit is contained in:
parent
fff2b39a9b
commit
f2d1edfb3a
1 changed files with 9 additions and 9 deletions
|
@ -25,6 +25,15 @@
|
|||
when:
|
||||
- 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
|
||||
ansible.builtin.template:
|
||||
state: touch
|
||||
|
@ -36,15 +45,6 @@
|
|||
when:
|
||||
- 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
|
||||
when:
|
||||
- (ansible_facts['distribution'] == 'Fedora') or
|
||||
|
|
Loading…
Reference in a new issue