title: Ansible commands on docker containers?
body: <p>Upto now i had setup my ansible-playbook commands running on AWS EC2 instances.</p>
  <p>can i run regular ansible commands like (linefile, apt, pip, etc) on container?</p>
  <p>can i add my container-ip to hosts file in container-group and then does the same code works, here if i chanage my main.yml file that has</p>
  <pre><code>hosts: ec2-group
  </code></pre>
  <p>to</p>
  <pre><code>hosts:contaniers-group
  </code></pre>
  <p>does all commands work?</p>
  <p>i am bit  beginner into this..please do confirm me i am actually thinking of making docker-compose files from scratch, and run docker-compose commands using ansible.</p>