Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Mudpuppy12/f11f43b30c7f1e0e7e7dc99607112dd0 to your computer and use it in GitHub Desktop.
Save Mudpuppy12/f11f43b30c7f1e0e7e7dc99607112dd0 to your computer and use it in GitHub Desktop.
ansilbe shortcuts
- name: dns pdns directories
file: path="{{ item.path }}" mode={{ item.mode|default('0755') }} owner={{ item.owner|default('root') }} group={{ item.group|default('root') }} state=directory
with_items: "{{ dns_pdns_directories }}"
- name: dns pdns template files
template: src={{ item.src }}.j2 dest={{ item.dest|default( '/' + item.src ) }} mode={{ item.mode|default('0644') }} owner={{ item.owner|default('root') }} group={{ item.group|default('root') }}
with_items: "{{ dns_pdns_template_files }}"
- name: dns pdns copy files
copy: src={{ item.src }} dest={{ item.dest|default( '/' + item.src ) }} mode={{ item.mode|default('0644') }} owner={{ item.owner|default('root') }} group={{ item.group|default('root') }}
with_items: "{{ dns_pdns_copy_files }}"
dns_pdns_template_files:
- { src: "etc/pdns-recursor/recursor.conf" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment