Skip to content

Instantly share code, notes, and snippets.

Created August 10, 2017 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9220fa18231be89336e51e49f9620f9f to your computer and use it in GitHub Desktop.
Save anonymous/9220fa18231be89336e51e49f9620f9f to your computer and use it in GitHub Desktop.
{% set hostname = grains['host'] %}
hostname_zabbix_agentd.conf:
file.replace:
- name: /etc/zabbix/zabbix_agentd.conf
- pattern: HOSTNAMEAGENT
- repl: hostname
- show_changes: True
- bufsize: file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment