feat: use args options with shell command

This commit is contained in:
Adrien Waksberg 2018-01-19 22:59:57 +01:00
parent 43892ea54f
commit c7bb61ec31

View file

@ -65,7 +65,9 @@
tags: bind tags: bind
- name: dnssec sign - name: dnssec sign
shell: 'cd /etc/bind/keys && dnssec-signzone -3 $(head -n 1000 /dev/urandom | sha1sum | cut -b 1-16) -A -N INCREMENT -o {{ item.item.key }} -t /etc/bind/zones/db.{{ item.item.key }}' shell: 'dnssec-signzone -3 $(head -n 1000 /dev/urandom | sha1sum | cut -b 1-16) -A -N INCREMENT -o {{ item.item.key }} -t /etc/bind/zones/db.{{ item.item.key }}'
args:
chdir: /etc/bind/keys
with_items: '{{ zone.results }}' with_items: '{{ zone.results }}'
when: item.changed and item.item.value.dnssec is defined and item.item.value.dnssec when: item.changed and item.item.value.dnssec is defined and item.item.value.dnssec
notify: reload bind notify: reload bind