Created
June 22, 2018 19:23
-
-
Save Mudpuppy12/f11f43b30c7f1e0e7e7dc99607112dd0 to your computer and use it in GitHub Desktop.
ansilbe shortcuts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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