remove become_user

This commit is contained in:
Hannaeko 2021-07-30 11:46:17 +02:00
parent db07371732
commit 5da4fcc1e9

View file

@ -16,7 +16,6 @@
- name: Generate tsig
become: yes
become_user: knot
ansible.builtin.shell: keymgr -t {{ key_name }} > /etc/knot/{{ key_name }}.key
args:
creates: /etc/knot/{{ key_name }}.key
@ -24,7 +23,6 @@
- name: Fetch key
become: yes
become_user: knot
ansible.builtin.slurp:
src: /etc/knot/{{ key_name }}.key
register: tsig_key
@ -32,7 +30,6 @@
- name: Deploy conf
become: yes
become_user: knot
template:
src: knot.conf.j2
dest: /etc/knot/knot.conf