Remove agent groups redundant list

This commit is contained in:
Rshad Zhran 2020-03-23 20:32:12 +01:00
parent fd4515ab16
commit e27d0d3310
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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"