No description
Find a file
2025-02-26 18:46:56 +00:00
defaults initial commit 2025-02-26 18:46:56 +00:00
meta initial commit 2025-02-26 18:46:56 +00:00
tasks initial commit 2025-02-26 18:46:56 +00:00
.gitignore initial commit 2025-02-26 18:46:56 +00:00
README.md initial commit 2025-02-26 18:46:56 +00:00

ansible-roles-gotify

This role is designed to deploy gotify as a podman container

Task Configuration

This should be used in conjunction with the caddy or traefik roles to provide a reverse proxy for the service

- name: Setup proxy and service
  hosts: somehost
  become: true
  roles:
    - role: gotify
    - role: caddy
      caddy_sites:
        - name: gotify
          host: "{{ gotify_url }}"
          srv: "{{ caddy_local_address }}:3001"
    - role: firewalld
      firewalld_add:
        - name: public
          services:
            - http
            - https
          forwards:
            - port: 80
              to: 8080
            - port: 443
              to: 8443
            - port: 443
              to: 8443
              proto: udp

Deployment and Removal

Sometimes you need to manually stop the running containers to get a clean run when re-deploying Services must be stopped as the respecitve user or another means to aquire the correct user scope for systemd

systemctl --user stop container-caddy.service
systemctl --user stop container-gotify.service

Deploy

ansible-playbook -i hosts site.yml --tags=firewalld,caddy,gotify --limit=somehost

Remove

ansible-playbook -i hosts site.yml --tags=firewalld,caddy,gotify --extra-vars "container_state=absent firewall_action=remove" --limit=somehost