You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

local_facts.yaml 344B

4 vuotta sitten
4 vuotta sitten
1234567891011121314151617
  1. ---
  2. - name: ansible local facts directory
  3. file:
  4. path: /etc/ansible/facts.d
  5. state: directory
  6. - name: set ansible local fact
  7. copy:
  8. content: "{{_local_facts|to_json}}"
  9. dest: /etc/ansible/facts.d/{{role_name}}.fact
  10. mode: 0600
  11. register: _local_facts_set
  12. - name: Gathering Facts
  13. setup:
  14. when: _local_facts_set.changed