You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/roles/common/tasks/custom_facts.yml

21 lines
460 B
YAML

---
- name: Create custom facts directory
file:
state: directory
path: "{{ global_ansible_facts_directory }}"
owner: root
group: root
mode: "u=rwx,g=rx,o=rx"
- name: Store custom apt fact
copy:
content: |
#!/bin/sh
echo "{\"architecture\": \"$(dpkg --print-architecture)\"}";
dest: "{{ global_ansible_facts_directory }}/dpkg.fact"
owner: root
group: root
mode: "u=rwx,g=rx,o=rx"
notify: reload facts