On 18. aug. 2016 16:31, Agusti Tomas wrote:
Hello,

I have a simple role called consul:

- name: Pull consul image
  docker_image:
    name: consul
    tag: latest
    state: present

- name: Start consul container
  docker_container:
    name: consul
    image: consul
    state: started
    published_ports:
      - 8500:8500
      - 8301:8301
      - 8300:8300
    hostname: "{{ ansible_hostname }}"
    command: -d --name consul consul agent -server -bootstrap -ui
-client=0.0.0.0

Never used docker_container, but this command seems weird. command: is the command to run inside the container, so "-d --name consul" should be deleted?

--
Kai Stian Olstad

--
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/0bc0f445-667a-2116-552a-a9ef444c0ea3%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to