New user here, only been playing a couple hours.

I got this playbook working to install version 1.0 of my fake web app that 
uses redis.  But what I want to know is, how can I know if there is a new 
version of my web container and how to upgrade to it?

I thought if I just changed the tag from 1.0 to 2.0 then the 1.0 version 
would be stopped and the 2.0 would go up. But the 1.0 version is remaining.


- hosts: all 
  sudo: yes
  tasks:
  - name: ensure redis container is running
    docker: image=dockerfile/redis name=redis command=" bash -c 
'redis-server  /etc/redis/redis.conf'"

  - name: ensure web container is running
    docker: image=<privaterepo>:5000/web:*1.0* ports=5000:5000 
links=redis:redis name=cyweb state=restarted


thanks for your time.

-- 
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/3bb813bc-4e91-4fde-9cc2-ba83aa70be7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to