Skip to content

Commit

Permalink
Merge pull request #11538 from marcusburghardt/sysctl_fqcn_stab
Browse files Browse the repository at this point in the history
Stabilization - Fix Ansible compatibility with sysctl module
  • Loading branch information
Mab879 committed Feb 2, 2024
2 parents 0867f86 + 05c915b commit 7fb44f7
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,15 @@
register: ipv6_status

- name: Check sysctl value of net.ipv6.conf.all.disable_ipv6
{{% if product == "rhel7" %}}
ansible.builtin.sysctl:
{{% else %}}
ansible.posix.sysctl:
{{%endif %}}
sysctl:
name: net.ipv6.conf.all.disable_ipv6
state: present
value: "1"
check_mode: true
register: sysctl_ipv6_all

- name: Check sysctl value of net.ipv6.conf.default.disable_ipv6
{{% if product == "rhel7" %}}
ansible.builtin.sysctl:
{{% else %}}
ansible.posix.sysctl:
{{%endif %}}
sysctl:
name: net.ipv6.conf.default.disable_ipv6
state: present
value: "1"
Expand Down

0 comments on commit 7fb44f7

Please sign in to comment.