This commit is contained in:
@@ -69,6 +69,9 @@ pitty-v1-pico ansible_host=10.7.10.16
|
|||||||
smtp1 ansible_host=smtp1.int.metaunix.net
|
smtp1 ansible_host=smtp1.int.metaunix.net
|
||||||
smtp2 ansible_host=smtp2.int.metaunix.net
|
smtp2 ansible_host=smtp2.int.metaunix.net
|
||||||
|
|
||||||
|
[uptime_kuma]
|
||||||
|
pi5b1g ansible_host=10.7.20.69
|
||||||
|
|
||||||
[web_servers]
|
[web_servers]
|
||||||
www3 ansible_host=www3.int.metaunix.net
|
www3 ansible_host=www3.int.metaunix.net
|
||||||
www4 ansible_host=www4.int.metaunix.net
|
www4 ansible_host=www4.int.metaunix.net
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install and configure Docker
|
- name: Install and configure Docker
|
||||||
hosts: ci_servers
|
hosts:
|
||||||
|
- ci_servers
|
||||||
|
- uptime_kuma
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Deploy Uptime Kuma 2
|
||||||
|
hosts: uptime_kuma
|
||||||
|
become: true
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Ensure named Docker volume exists
|
||||||
|
community.docker.docker_volume:
|
||||||
|
name: uptime-kuma
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Run Uptime Kuma container
|
||||||
|
community.docker.docker_container:
|
||||||
|
name: uptime-kuma
|
||||||
|
image: louislam/uptime-kuma:2
|
||||||
|
state: started
|
||||||
|
restart_policy: unless-stopped
|
||||||
|
published_ports:
|
||||||
|
- "3001:3001"
|
||||||
|
volumes:
|
||||||
|
- uptime-kuma:/app/data
|
||||||
|
pull: true
|
||||||
Reference in New Issue
Block a user