Skip to content

Commit

Permalink
use ansible.posix.sysctl instead of sysctl
Browse files Browse the repository at this point in the history
  • Loading branch information
suhancz committed Oct 27, 2023
1 parent 3066adc commit dc9b233
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tasks/os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
when: ansible_default_ipv6.address is not defined
block:
- name: Enable IPv6 via sysctl

Check failure on line 11 in tasks/os.yml

View workflow job for this annotation

GitHub Actions / Lint Code Base

syntax-check[specific]

couldn't resolve module/action 'ansible.posix.sysctl'. This often indicates a misspelling, missing collection, or incorrect module path.
sysctl:
ansible.posix.sysctl:
name: "{{ item }}"
value: 0
state: present
Expand Down
2 changes: 1 addition & 1 deletion tasks/pdns_recursor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
when: 'public_dns == "yes"'
notify: Restart pdns-recursor
- name: Set IPv6 route size
sysctl:
ansible.posix.sysctl:
name: net.ipv6.route.max_size
value: 16384
state: present # not required. choices: present;absent. Whether the entry should be present or absent in the sysctl file.
Expand Down
2 changes: 1 addition & 1 deletion tasks/wireguard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- iptable_nat
- ip6table_nat
- name: Set sysctl variables
sysctl:
ansible.posix.sysctl:
name: "{{ item }}"
value: 1
state: present # not required. choices: present;absent. Whether the entry should be present or absent in the sysctl file.
Expand Down

0 comments on commit dc9b233

Please sign in to comment.