forked from HawksRepos/PTS-Team
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mountcheck update ( read is docker uploader running ) 3 x index.php for replacing
- Loading branch information
MrDoobPG
authored and
MrDoobPG
committed
Jan 12, 2020
1 parent
d0c0573
commit bd25a05
Showing
5 changed files
with
551 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
# Title: autoheal | ||
# GNU: General Public License v3.0 | ||
################################################################################ | ||
--- | ||
- hosts: localhost | ||
gather_facts: false | ||
tasks: | ||
# FACTS ####################################################################### | ||
- name: 'Set Known Facts' | ||
set_fact: | ||
pgrole: 'autoheal' | ||
image: 'willfarrell/autoheal' | ||
- name: 'Setting {{pgrole}} Volumes' | ||
set_fact: | ||
pg_volumes: | ||
- '/var/run/docker.sock:/var/run/docker.sock' | ||
- '/etc/localtime:/etc/localtime:ro' | ||
|
||
- name: 'Setting {{pgrole}} ENV' | ||
set_fact: | ||
pg_env: | ||
AUTOHEAL_CONTAINER_LABEL: 'all' | ||
AUTOHEAL_INTERVAL: '5' | ||
AUTOHEAL_START_PERIOD: '0' | ||
AUTOHEAL_DEFAULT_STOP_TIMEOUT: '10' | ||
CURL_TIMEOUT: '30' | ||
DOCKER_SOCK: '/var/run/docker.sock' | ||
|
||
# MAIN DEPLOYMENT ############################################################# | ||
- name: 'Deploying {{pgrole}}' | ||
docker_container: | ||
name: '{{pgrole}}' | ||
image: '{{image}}' | ||
pull: yes | ||
volumes: '{{pg_volumes}}' | ||
env: '{{pg_env}}' | ||
restart_policy: unless-stopped | ||
networks: | ||
- name: plexguide | ||
aliases: | ||
- 'autoheal' | ||
state: started |
Oops, something went wrong.