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