node_exporter.yml 494 B

1234567891011121314
  1. ---
  2. - name: apply node_exporter role
  3. hosts: node_exporter_servers
  4. # vars:
  5. # ansible_python_interpreter: /usr/bin/python3
  6. # ansible_user: vagrant
  7. # ansible_password: vagrant
  8. # pre_tasks:
  9. # - name: define ansible_python_interpreter group // linux distribution
  10. # set_fact:
  11. # ansible_python_interpreter: /usr/bin/python2
  12. # when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'
  13. roles:
  14. - { role: node_exporter }