On 22.01.2020 19:55, Vladimir Botka wrote:
On Wed, 22 Jan 2020 19:15:27 +0100
Kai Stian Olstad <[email protected]> wrote:

> - name: add host
>   add_host:
>     name: 'test'
>     groups: all

There is no point in adding a host to all, the all group are a special
group that all hosts is a member of.

The point is to add a host that hasn't been declared in any inventory yet.

I understand that, it wasn't that I commented on, I can rephrase
Using "groups: all" in add_host is pointless since all hosts is automatically added to the group all anyway.

--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5c6f5d802efdc831fabb29f199e9c779%40olstad.com.

Reply via email to