Two solutions here:
One is to pull this task into the playbook and make it only run once on the group (or only execute against the first host in the group).
Another is to only make that task execute against the first member of the group through the use of a conditional. This is similar to https://github.com/openstack/openstack-ansible-os_neutron/blob/master/tasks/main.yml#L55-L57
Two solutions here:
One is to pull this task into the playbook and make it only run once on the group (or only execute against the first host in the group).
Another is to only make that task execute against the first member of the group through the use of a conditional. This is similar to https:/ /github. com/openstack/ openstack- ansible- os_neutron/ blob/master/ tasks/main. yml#L55- L57