Skip to content
Snippets Groups Projects
Commit 2106581f authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: use ansible.builtin.shell instead of ansible.builtin.command to be able...

fix: use ansible.builtin.shell instead of ansible.builtin.command to be able to use Shell redirection for saving iptables rules
parent a734c7ed
Branches
No related tags found
No related merge requests found
Pipeline #6265 passed
......@@ -32,7 +32,9 @@
mode: "0600"
listen: "save iptables rules"
- name: save iptables rules
ansible.builtin.command:
# We need to use ansible.builtin.shell here to be able to use Shell
# redirection.
ansible.builtin.shell:
cmd: /usr/sbin/iptables-save > /etc/sysconfig/iptables # noqa command-instead-of-module
listen: "save iptables rules"
changed_when: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment