1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-06 03:54:01 +02:00

update playbook

This commit is contained in:
kev 2015-08-31 08:11:03 +08:00
parent f2d96f79d4
commit acbe5d24c0

View File

@ -17,6 +17,11 @@
update_cache: yes
state: latest
- name: ensure docker is running
service:
name: docker
state: started
- name: ensure pip is installed
shell: 'curl -sSL https://bootstrap.pypa.io/get-pip.py | python2'
args:
@ -29,11 +34,6 @@
executable: pip2
state: present
- name: ensure docker is running
service:
name: docker
state: started
- name: ensure shadowsocks is started
docker:
name: shadowsocks
@ -46,3 +46,10 @@
PASSWORD: "{{password}}"
restart_policy: always
state: started
- name: wait for shadowsocks
wait_for:
host: "{{ansible_eth0.ipv4.address}}"
port: "{{port}}"
delay: 5