updates for gregtime, caddyfile, added uptime-kuma
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
---
|
||||
- name: create uptime-kuma host directory volumes
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
owner: "{{ podman_user }}"
|
||||
group: "{{ podman_user }}"
|
||||
mode: 0755
|
||||
notify: restorecon podman
|
||||
loop:
|
||||
- "{{ uptime_kuma_path }}/data"
|
||||
|
||||
- name: flush handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
- import_tasks: podman/podman-check.yml
|
||||
vars:
|
||||
container_name: uptime-kuma
|
||||
container_image: "{{ image }}"
|
||||
|
||||
- name: create uptime-kuma container
|
||||
become: true
|
||||
become_user: "{{ podman_user }}"
|
||||
containers.podman.podman_container:
|
||||
name: uptime-kuma
|
||||
image: "{{ image }}"
|
||||
restart_policy: on-failure:3
|
||||
log_driver: journald
|
||||
volumes:
|
||||
- "{{ uptime_kuma_path }}/data:/app/data"
|
||||
ports:
|
||||
- "3001:3001/tcp"
|
||||
|
||||
- name: create systemd startup job for uptime-kuma
|
||||
include_tasks: podman/systemd-generate.yml
|
||||
vars:
|
||||
container_name: uptime-kuma
|
||||
45
ansible/roles/podman/tasks/containers/home/gregtime.yml
Normal file
45
ansible/roles/podman/tasks/containers/home/gregtime.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
- name: create gregtime host directory volumes
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
owner: "{{ podman_subuid.stdout }}"
|
||||
group: "{{ podman_user }}"
|
||||
mode: 0755
|
||||
notify: restorecon podman
|
||||
loop:
|
||||
- "{{ gregtime_path }}/logs"
|
||||
|
||||
- name: unshare chown the gregtime log volume
|
||||
become: true
|
||||
become_user: "{{ podman_user }}"
|
||||
changed_when: false
|
||||
ansible.builtin.command: |
|
||||
podman unshare chown -R 1000:1000 {{ gregtime_path }}/logs
|
||||
|
||||
- name: flush handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
- import_tasks: podman/podman-check.yml
|
||||
vars:
|
||||
container_name: gregtime
|
||||
container_image: "{{ image }}"
|
||||
|
||||
- name: create gregtime container
|
||||
become: true
|
||||
become_user: "{{ podman_user }}"
|
||||
containers.podman.podman_container:
|
||||
name: gregtime
|
||||
image: "{{ image }}"
|
||||
restart_policy: on-failure:3
|
||||
log_driver: journald
|
||||
env:
|
||||
TZ: America/New_York
|
||||
volumes:
|
||||
- "{{ gregtime_path }}/logs:/app/logs"
|
||||
|
||||
- name: create systemd startup job for gregtime
|
||||
include_tasks: podman/systemd-generate.yml
|
||||
vars:
|
||||
container_name: gregtime
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
- import_tasks: containers/home/partsy.yml
|
||||
vars:
|
||||
image: localhost/partsy:b8e4e92-dirty
|
||||
image: localhost/partsy:f3bb84a-45ae7ef
|
||||
tags: partsy
|
||||
|
||||
- import_tasks: containers/skudak/wiki.yml
|
||||
@@ -76,6 +76,11 @@
|
||||
image: "{{ aws_ecr_endpoint }}/fulfillr:20251003.1533"
|
||||
tags: debyltech, fulfillr
|
||||
|
||||
- import_tasks: containers/debyltech/uptime-kuma.yml
|
||||
vars:
|
||||
image: docker.io/louislam/uptime-kuma:1
|
||||
tags: debyltech, uptime-kuma
|
||||
|
||||
- import_tasks: containers/home/nosql.yml
|
||||
vars:
|
||||
image: docker.io/redis:7.2.1-alpine
|
||||
@@ -83,5 +88,5 @@
|
||||
|
||||
- import_tasks: containers/home/gregtime.yml
|
||||
vars:
|
||||
image: docker.io/library/greg-time-bot:1.0.1
|
||||
image: localhost/greg-time-bot:1.2.0
|
||||
tags: gregtime
|
||||
Reference in New Issue
Block a user