Hi,
I'm trying to create a "www" group and a "web" user who should be a member
of this "www" group.
---
- name: create group for deloyment and web
group:
state=present
name=web
system=yes
- name: create user for deployment and web
user:
state=present
name=web
group=www
home=/home/web
createhome=yes
generate_ssh_key=yes
ssh_key_bits=4096
ssh_key_type=rsa
ssh_key_comment="web user"
I got a error message, group www doesn't exists, but it is present on the
host when I ssh into the box after running this code.
Here is the error message:
PLAY [webservers] *************************************************************
GATHERING FACTS ***************************************************************
ok: [web.vagrant.box]
TASK: [deployment | create group for deloyment and web] ***********************
ok: [web.vagrant.box]
TASK: [deployment | create user for deployment and web] ***********************
failed: [web.vagrant.box] => {"failed": true, "item": ""}
msg: Group www does not exist
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/wopi/webserver.retry
web.vagrant.box : ok=2 changed=0 unreachable=0 failed=1
What is the cause ?
Regards,
Wojciech
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/0e39ee02-ba49-42d2-8f99-502c06923833%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.