No description
Find a file
2025-08-26 00:28:57 +00:00
defaults initial commit 2025-08-02 17:03:12 +00:00
meta initial commit 2025-08-02 17:03:12 +00:00
tasks update system handler 2025-08-26 00:28:57 +00:00
.gitignore initial commit 2025-08-02 17:03:12 +00:00
README.md initial commit 2025-08-02 17:03:12 +00:00

ansible-roles-weblate

Task Configuration

- name: Setup n8n
  hosts: somehost
  become: true
  roles:
    - role: weblate
      weblate_server_version: 5.12.2.3
      weblate_site_domain: weblate.somehost
      weblate_admin_email: weblate.admin@somehost
      weblate_admin_password: xxx
      weblate_database_password: xxx

    - role: caddy
      caddy_sites:
        - name: weblate
          url: weblate.somehost
          srv: localhost:8811

    - role: firewalld
      firewalld_add:
        - name: public
          forwards:
            - port: 80
              to: 8080
            - port: 443
              to: 8443
        - name: internal
          forwards:
            - port: 80
              to: 8080
            - port: 443
              to: 8443

Deployment and Removal

Services are managed by user scope systemd

systemctl --user <..> container-caddy.service
systemctl --user <..> container-weblate.service

Logs are accessible via journalctl

journalctl -t weblate -f

Deploy

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

Remove

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