This is working as designed... If you want the user created you should have state=present. What you are showing us makes sure that the user doesn't exist.
(And you didn't need to ask four times in two lists). Adam On Tuesday, April 15, 2014 4:15:57 AM UTC-7, prateek gupta wrote: > > im trying to create a user for mysql DB rds and just trying to execute the > following > > --- > - hosts: localhost > tasks: > - name: sql user creation > mysql_user: login_host=ABCDE.us-west-2.rds.amazonaws.comlogin_port=3306 > login_user=klm login_password=klm123 name=marley > password=klm123 *state=absent* > > > i get the following output > ------------------- > > PLAY [localhost] > ************************************************************** > > GATHERING FACTS > *************************************************************** > ok: [localhost] > > TASK: [sql user creation] > ***************************************************** > ok: [localhost] > > PLAY RECAP > ******************************************************************** > localhost : ok=2 changed=0 unreachable=0 failed=0 > > > It doesnt create the user on the backend as changed=0 > > > > -- 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/7db6abab-07a0-4ef7-a222-977e1daf2419%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
