Replace shell by command

This commit is contained in:
Rshad Zhran 2020-02-11 17:55:51 +01:00
parent e1b3156ee6
commit 76215bf6ed

View File

@ -356,7 +356,7 @@
- ansible_distribution in ['CentOS', 'RedHat', 'Amazon'] and ansible_distribution_major_version|int < 6
- name: Create agent groups
shell: "/var/ossec/bin/agent_groups -a -g {{ item }} -q"
command: "/var/ossec/bin/agent_groups -a -g {{ item }} -q"
with_items:
- "{{ agent_groups.groups }}"
when: