Skip to content

Commit

Permalink
fix: sysctl/ansible: FQDN ansible.posix.sysctl not in 2.9
Browse files Browse the repository at this point in the history
Newer ansible (mine 2.14) has sysctl at ansible.posix.sysctl.

But build system does not accept it:

	Found module which is not allowed:
	{'tags', 'name', 'when', 'ansible.posix.sysctl'}

and

	ERROR! couldn't resolve module/action 'ansible.posix.sysctl'. This often indicates a misspelling, missing collection, or incorrect module path.
  • Loading branch information
maage committed May 14, 2023
1 parent d3565e2 commit 63fe82c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/templates/sysctl/ansible.template
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
- (xccdf-var sysctl_{{{ SYSCTLID }}}_value)

- name: Ensure sysctl {{{ SYSCTLVAR }}} is set
ansible.posix.sysctl:
sysctl:
name: "{{{ SYSCTLVAR }}}"
# Ansible sysctl module doesn't allow empty string. A space string is
# allowed and has the same semantics as sysctl will ignore spaces.
Expand All @@ -49,7 +49,7 @@
{{%- else %}}

- name: Ensure sysctl {{{ SYSCTLVAR }}} is set to {{{ SYSCTLVAL }}}
ansible.posix.sysctl:
sysctl:
name: "{{{ SYSCTLVAR }}}"
# Ansible sysctl module doesn't allow empty string. A space string is
# allowed and has the same semantics as sysctl will ignore spaces.
Expand Down

0 comments on commit 63fe82c

Please sign in to comment.