Skip to content

Commit 7fb44f7

Browse files
authored
Merge pull request #11538 from marcusburghardt/sysctl_fqcn_stab
Stabilization - Fix Ansible compatibility with sysctl module
2 parents 0867f86 + 05c915b commit 7fb44f7

File tree

1 file changed

+2
-10
lines changed
  • linux_os/guide/system/network/network-nftables/set_nftables_loopback_traffic/ansible

1 file changed

+2
-10
lines changed

linux_os/guide/system/network/network-nftables/set_nftables_loopback_traffic/ansible/shared.yml

+2-10
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,15 @@
1616
register: ipv6_status
1717

1818
- name: Check sysctl value of net.ipv6.conf.all.disable_ipv6
19-
{{% if product == "rhel7" %}}
20-
ansible.builtin.sysctl:
21-
{{% else %}}
22-
ansible.posix.sysctl:
23-
{{%endif %}}
19+
sysctl:
2420
name: net.ipv6.conf.all.disable_ipv6
2521
state: present
2622
value: "1"
2723
check_mode: true
2824
register: sysctl_ipv6_all
2925

3026
- name: Check sysctl value of net.ipv6.conf.default.disable_ipv6
31-
{{% if product == "rhel7" %}}
32-
ansible.builtin.sysctl:
33-
{{% else %}}
34-
ansible.posix.sysctl:
35-
{{%endif %}}
27+
sysctl:
3628
name: net.ipv6.conf.default.disable_ipv6
3729
state: present
3830
value: "1"

0 commit comments

Comments
 (0)