Move ssh_known_hosts generation to own role
This commit is contained in:
parent
b406b64782
commit
ffbe68294b
4 changed files with 11 additions and 8 deletions
8
roles/ssh_known_hosts/tasks/main.yml
Normal file
8
roles/ssh_known_hosts/tasks/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
- name: create ssh known_hosts
|
||||||
|
template:
|
||||||
|
dest: /etc/ssh/ssh_known_hosts
|
||||||
|
src: ssh_known_hosts.j2
|
||||||
|
mode: 0644
|
||||||
|
owner: root
|
||||||
|
group: "{{ ansible_wheel }}"
|
3
roles/web-logs/meta/main.yml
Normal file
3
roles/web-logs/meta/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
dependencies:
|
||||||
|
- {role: ssh_known_hosts}
|
|
@ -21,14 +21,6 @@
|
||||||
shell: /sbin/nologin
|
shell: /sbin/nologin
|
||||||
system: true
|
system: true
|
||||||
|
|
||||||
- name: create ssh known_hosts
|
|
||||||
template:
|
|
||||||
dest: /etc/ssh/ssh_known_hosts
|
|
||||||
src: ssh_known_hosts.j2
|
|
||||||
mode: 0644
|
|
||||||
owner: root
|
|
||||||
group: "{{ ansible_wheel }}"
|
|
||||||
|
|
||||||
- name: create data directories
|
- name: create data directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue