No description
Find a file
2026-04-05 19:45:53 +00:00
defaults initial commit 2026-04-05 19:45:53 +00:00
meta initial commit 2026-04-05 19:45:53 +00:00
tasks initial commit 2026-04-05 19:45:53 +00:00
.gitignore initial commit 2026-04-05 19:45:53 +00:00
README.md initial commit 2026-04-05 19:45:53 +00:00

ansible-roles-termix

This role will deploy termix

- name: Deploy termix
  hosts: termix
  become: true
  roles:
    - role: termix
      termix_url: termix.somehost.somewhere
    - role: caddy
      caddy_sites:
      - name: termix
        url: "{{ termix_url }}"
        srv: "{{ caddy_local_address }}:3000"
        log: true
    - role: firewalld
      firewalld_add:
        - name: public
          interfaces:
            - eth2
          forwards:
            - port: 80
              to: 8080
            - port: 443
              to: 8443
            - port: 443
              to: 8443
              proto: udp

Deployment and Removal

Manage a running deployment via systemd

systemctl --user status container-caddy.service
systemctl --user status container-termix.service
systemctl --user status container-termix-image-renderer.service

Deploy

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

Remove

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