Hey you are nit indented your yaml file correctly. The docer_image command must be inside the task you have started with "- name". That means at least as much space until th n of name.
For your further reference: http://docs.ansible.com/ansible/latest/YAMLSyntax.html Regards Am Donnerstag, 15. Februar 2018 10:52:00 UTC+1 schrieb Dark Night: > > let me out from this below > > how can i integrate ansible with docker-container > the function of docker commands run on ansible module > > > for example > docker pull command run ansible > > > - name: pull an image > > docker_image: > name: centos-7 > > its not working can anyone help me > > its contain this error > ERROR! 'docker_image' is not a valid attribute for a Play > -- 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/e5bd1584-6a90-412d-9bd7-d6784251c17f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
