Remove agent groups redundant list
This commit is contained in:
parent
fd4515ab16
commit
e27d0d3310
@ -410,5 +410,4 @@ nodejs:
|
|||||||
redhat: "rpm"
|
redhat: "rpm"
|
||||||
repo_url_ext: "nodesource.com/setup_10.x"
|
repo_url_ext: "nodesource.com/setup_10.x"
|
||||||
|
|
||||||
agent_groups:
|
agent_groups: [] # groups to create
|
||||||
groups: [] # groups to create
|
|
||||||
|
|||||||
@ -354,9 +354,9 @@
|
|||||||
- name: Create agent groups
|
- name: Create agent groups
|
||||||
command: "/var/ossec/bin/agent_groups -a -g {{ item }} -q"
|
command: "/var/ossec/bin/agent_groups -a -g {{ item }} -q"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ agent_groups.groups }}"
|
- "{{ agent_groups }}"
|
||||||
when:
|
when:
|
||||||
- ( agent_groups.groups is defined) and ( agent_groups.groups|length > 0)
|
- ( agent_groups is defined) and ( agent_groups|length > 0)
|
||||||
tags: molecule-idempotence-notest
|
tags: molecule-idempotence-notest
|
||||||
|
|
||||||
- include_tasks: "RMRedHat.yml"
|
- include_tasks: "RMRedHat.yml"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user