Skip to content

Commit

Permalink
fix: sysctl/ansible: FQDN ansible.posix.sysctl not allowed
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 12, 2023
1 parent 5f0a659 commit 436ad22
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 436ad22

Please sign in to comment.