Playbooks to a new Lilik
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.

16 lines
426 B

  1. ---
  2. - name: 'MONITORING | Host type: lxc_vm'
  3. set_fact:
  4. monitoring_entry: >
  5. {{ { 'address': ansible_host,
  6. 'host_type': 'lxc_vm' } }}
  7. - name: 'MONITORING | Append host'
  8. set_fact:
  9. monitoring_facts: >
  10. {{ hostvars[monitoring_host]['monitoring_facts']
  11. | default({})
  12. | combine({host_fqdn: monitoring_entry}) }}
  13. delegate_facts: true
  14. delegate_to: '{{ monitoring_host }}'
  15. ...