feat: use args options with shell command
This commit is contained in:
parent
43892ea54f
commit
c7bb61ec31
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue