Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quotes around vars for ansible 2.1 support #13

Merged
merged 1 commit into from
Apr 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tasks/configuration.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Ensure the PowerDNS configuration directory exists
file: name={{pdns_config_dir | default('/etc/powerdns')}} state=directory owner="root" group="root"
file: name="{{pdns_config_dir | default('/etc/powerdns')}}" state=directory owner="root" group="root"

- name: Add configuration for PowerDNS
template: src=pdns.conf.j2 dest={{pdns_config_dir | default('/etc/powerdns')}}/pdns.conf
template: src=pdns.conf.j2 dest="{{pdns_config_dir | default('/etc/powerdns')}}/pdns.conf"
notify: Restart PowerDNS
24 changes: 12 additions & 12 deletions tasks/install.packages-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,59 +31,59 @@
- name: Install Geo module package
apt: pkg=pdns-backend-geo state=installed
when: item.key.startswith('geo') and not item.key.startswith('geoip')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install GeoIP module package
apt: pkg=pdns-backend-geoip state=installed
when: item.key.startswith('geoip')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install MySQL module package
apt: pkg=pdns-backend-mysql state=installed
when: item.key.startswith('gmysql')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install Postgresql module package
apt: pkg=pdns-backend-pgsql state=installed
when: item.key.startswith('gpgsql')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install gsqlite3 module package
apt: pkg=pdns-backend-sqlite3 state=installed
when: item.key.startswith('gsqlite3')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install ldap module package
apt: pkg=pdns-backend-ldap state=installed
when: item.key.startswith('ldap')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install lmdb module package
apt: pkg=pdns-backend-lmdb state=installed
when: item.key.startswith('lmdb')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install lua module package
apt: pkg=pdns-backend-lua state=installed
when: item.key.startswith('lua')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install mydns module package
apt: pkg=pdns-backend-mydns state=installed
when: item.key.startswith('mydns')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install pipe module package
apt: pkg=pdns-backend-pipe state=installed
when: item.key.startswith('pipe')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install remote module package
apt: pkg=pdns-backend-remote state=installed
when: item.key.startswith('remote')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install tinydns module package
apt: pkg=pdns-backend-tinydns state=installed
when: item.key.startswith('tinydns')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"
24 changes: 12 additions & 12 deletions tasks/install.packages-redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,59 +20,59 @@
- name: Install Geo module package
yum: pkg=pdns-backend-geo state=installed
when: item.key.startswith('geo') and not item.key.startswith('geoip')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install GeoIP module package
yum: pkg=pdns-backend-geoip state=installed
when: item.key.startswith('geoip')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install MySQL module package
yum: pkg=pdns-backend-mysql state=installed
when: item.key.startswith('gmysql')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install Postgresql module package
yum: pkg=pdns-backend-postgresql state=installed
when: item.key.startswith('gpgsql')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install gsqlite3 module package
yum: pkg=pdns-backend-sqlite state=installed
when: item.key.startswith('gsqlite3')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install ldap module package
yum: pkg=pdns-backend-ldap state=installed
when: item.key.startswith('ldap')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install lmdb module package
yum: pkg=pdns-backend-lmdb state=installed
when: item.key.startswith('lmdb')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install lua module package
yum: pkg=pdns-backend-lua state=installed
when: item.key.startswith('lua')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install mydns module package
yum: pkg=pdns-backend-mydns state=installed
when: item.key.startswith('mydns')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install pipe module package
yum: pkg=pdns-backend-pipe state=installed
when: item.key.startswith('pipe')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install remote module package
yum: pkg=pdns-backend-remote state=installed
when: item.key.startswith('remote')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"

- name: Install tinydns module package
yum: pkg=pdns-backend-tinydns state=installed
when: item.key.startswith('tinydns')
with_dict: pdns_backends
with_dict: "{{ pdns_backends }}"