doubt

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

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

Thanks for your support

im a beginner for ansible can u rebuild to this one