|
|
@ -8,15 +8,15 @@
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|
state: directory
|
|
|
|
state: directory
|
|
|
|
path: "./facts"
|
|
|
|
path: "./facts"
|
|
|
|
owner: zocker
|
|
|
|
owner: "{{ local_user }}"
|
|
|
|
group: zocker
|
|
|
|
group: "{{ local_user }}"
|
|
|
|
mode: "u=rwx,g=rx,o=rx"
|
|
|
|
mode: "u=rwx,g=rx,o=rx"
|
|
|
|
delegate_to: localhost
|
|
|
|
delegate_to: localhost
|
|
|
|
- name: Download facts to file
|
|
|
|
- name: Download facts to file
|
|
|
|
copy:
|
|
|
|
copy:
|
|
|
|
content: "{{ ansible_facts | to_nice_yaml(indent=2) }}"
|
|
|
|
content: "{{ ansible_facts | to_nice_yaml(indent=2) }}"
|
|
|
|
dest: "./facts/{{ ansible_fqdn }}.yml"
|
|
|
|
dest: "./facts/{{ ansible_fqdn }}.yml"
|
|
|
|
owner: zocker
|
|
|
|
owner: "{{ local_user }}"
|
|
|
|
group: zocker
|
|
|
|
group: "{{ local_user }}"
|
|
|
|
mode: "u=rw,g=r,o=r"
|
|
|
|
mode: "u=rw,g=r,o=r"
|
|
|
|
delegate_to: localhost
|
|
|
|
delegate_to: localhost
|
|
|
|