S
S
speedvm2018-10-25 14:41:46
Ansible
speedvm, 2018-10-25 14:41:46

How to create a group using ansible?

Dear time of day!
Creating a group in ansible is a breeze:

- name: Create group mygroup
  group: name=mygroup state=present

However, a group created this way does not appear in the /etc/group file.
Why?
PS: If you create a user via ansible, then the user's group of the same name does not appear either, although "groups username" displays it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
am4, 2018-10-26
@am4

try adding local=yes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question