mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-22 05:09:36 +02:00
update playbook
This commit is contained in:
parent
f2d96f79d4
commit
acbe5d24c0
@ -17,6 +17,11 @@
|
|||||||
update_cache: yes
|
update_cache: yes
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
|
- name: ensure docker is running
|
||||||
|
service:
|
||||||
|
name: docker
|
||||||
|
state: started
|
||||||
|
|
||||||
- name: ensure pip is installed
|
- name: ensure pip is installed
|
||||||
shell: 'curl -sSL https://bootstrap.pypa.io/get-pip.py | python2'
|
shell: 'curl -sSL https://bootstrap.pypa.io/get-pip.py | python2'
|
||||||
args:
|
args:
|
||||||
@ -29,11 +34,6 @@
|
|||||||
executable: pip2
|
executable: pip2
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: ensure docker is running
|
|
||||||
service:
|
|
||||||
name: docker
|
|
||||||
state: started
|
|
||||||
|
|
||||||
- name: ensure shadowsocks is started
|
- name: ensure shadowsocks is started
|
||||||
docker:
|
docker:
|
||||||
name: shadowsocks
|
name: shadowsocks
|
||||||
@ -46,3 +46,10 @@
|
|||||||
PASSWORD: "{{password}}"
|
PASSWORD: "{{password}}"
|
||||||
restart_policy: always
|
restart_policy: always
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
|
- name: wait for shadowsocks
|
||||||
|
wait_for:
|
||||||
|
host: "{{ansible_eth0.ipv4.address}}"
|
||||||
|
port: "{{port}}"
|
||||||
|
delay: 5
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user