Skip to content

Commit f7cd1a8

Browse files
committed
Fix containers
1 parent 4585f5e commit f7cd1a8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

roles/containers/tasks/main.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,19 @@
4848
- name: Run rotating Tor HTTP proxy container
4949
become: true
5050
become_user: root
51-
docker_container:
51+
community.docker.docker_container:
5252
name: rotating-tor-http-proxy
5353
image: zhaowde/rotating-tor-http-proxy
54+
state: started
55+
recreate: false
56+
detach: true
57+
restart_policy: "always"
5458
ports:
5559
- "3128:3128"
5660
- "4444:4444"
5761
env:
5862
TOR_INSTANCES: "5"
5963
TOR_REBUILD_INTERVAL: "3600"
60-
restart_policy: always
6164
tags: proxy
6265

6366
- name: Get list of containers

0 commit comments

Comments
 (0)