I'm aware of that module and am using it in that task list where I would 
run `docker-compose up`, but I'm not seeing how to use that module for 
`docker-compose run`, could you elaborate?

On Monday, January 29, 2018 at 3:33:14 PM UTC-5, Andrew Latham wrote:
>
> http://docs.ansible.com/ansible/latest/docker_service_module.html
>
> On Mon, Jan 29, 2018 at 2:28 PM, Brandon Schlueter <[email protected] 
> <javascript:>> wrote:
>
>> In writing a playbook to bring up sentry according to its docs with 
>> docker-compose, I ended up with a task list including:
>>
>> - name: run database migrations
>> command:
>> docker-compose run --rm web upgrade --noinput
>> chdir=/opt/sentry-onpremise
>> - name: create initial user
>> command:
>> docker-compose run --rm web createuser
>> --email [email protected] <javascript:>
>> --password supersecretpassword
>> --superuser
>> chdir=/opt/sentry-onpremise
>> - name: start docker service
>> docker_service:
>> project_src: /opt/sentry-onpremise
>> state: present 
>> Is there docker module I could be using instead of the command module 
>> calls to `docker-compose run`?
>>
>> For reference, the docker compose file I'm using is at 
>> https://github.com/refinery29/sentry-onpremise/blob/master/docker-compose.yml
>>  
>> (forked from the original).
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/abdd824e-6f43-426c-bdc3-fe0fe1b56b74%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/abdd824e-6f43-426c-bdc3-fe0fe1b56b74%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> - Andrew "lathama" Latham -
>

-- 
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/01e02d38-ed10-42e8-a873-4e6ec281219e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to