From f792bf3dd16b38114cfed30eac262ebcf62b21bf Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Thu, 29 Feb 2024 20:45:59 +0100 Subject: [PATCH] Fixes and add Watchtower to Uptime Kuma instance --- datacoop_hosts | 6 ++++-- playbook.yml | 2 +- roles/docker/templates/compose-files/uptime_kuma.yml.j2 | 4 +--- uptime.data.coop.yml | 3 ++- vagrant_host | 1 + 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/datacoop_hosts b/datacoop_hosts index 4fe371b..5b8c106 100644 --- a/datacoop_hosts +++ b/datacoop_hosts @@ -1,3 +1,5 @@ -###################################### -### All hosts +[production] hevonen.servers.data.coop ansible_port=19022 ansible_python_interpreter=/usr/bin/python3 + +[monitoring] +uptime.data.coop ansible_python_interpreter=/usr/bin/python3 \ No newline at end of file diff --git a/playbook.yml b/playbook.yml index df74f98..71b78eb 100644 --- a/playbook.yml +++ b/playbook.yml @@ -1,6 +1,6 @@ # vim: ft=yaml.ansible --- -- hosts: all +- hosts: production gather_facts: true become: true vars: diff --git a/roles/docker/templates/compose-files/uptime_kuma.yml.j2 b/roles/docker/templates/compose-files/uptime_kuma.yml.j2 index 3d737b8..0096d6f 100644 --- a/roles/docker/templates/compose-files/uptime_kuma.yml.j2 +++ b/roles/docker/templates/compose-files/uptime_kuma.yml.j2 @@ -1,6 +1,4 @@ -# Simple docker-compose.yml -# You can change your port or volume location - +# vim: ft=yaml.docker-compose version: '3.3' services: diff --git a/uptime.data.coop.yml b/uptime.data.coop.yml index 993f3e9..714d469 100644 --- a/uptime.data.coop.yml +++ b/uptime.data.coop.yml @@ -1,6 +1,6 @@ # vim: ft=yaml.ansible --- -- hosts: all +- hosts: monitoring gather_facts: true become: true vars: @@ -11,6 +11,7 @@ services_include: - nginx_proxy - uptime_kuma + - watchtower do_not_change_ssh_port: true skip_dell_apt_repo: true diff --git a/vagrant_host b/vagrant_host index e247254..c49d9be 100644 --- a/vagrant_host +++ b/vagrant_host @@ -1 +1,2 @@ +[production] localhost ansible_port=19022