No description
Find a file
2023-10-24 06:44:31 +00:00
defaults sync with common role changes, cleanup old defaults 2023-10-24 06:44:31 +00:00
meta update common role import, systemd compat fixes, etc 2023-09-16 06:39:08 +00:00
tasks sync with common role changes, cleanup old defaults 2023-10-24 06:44:31 +00:00
templates update default containers, add archiver prototype to extra 2023-10-02 23:23:54 +00:00
.gitignore update common role import, systemd compat fixes, etc 2023-09-16 06:39:08 +00:00
README.md update docs, update for new shared tasks, cleanup, etc 2023-10-08 20:37:34 +00:00

ansible-roles-mailman

This role is designed to deploy uptime kuma as a standalone podman container

Task Configuration

Define mailman_url, this will useful in conjunction with a proxy role such as traefik or nginx

Define mailman_path if the container user has a custom homedir such as something under /srv..

There are several other values that should be defined and secured vial ansible vault

  • mailman_rest_password
  • mailman_secret_key
  • mailman_hyperkitty_api
  • mailman_db_password
- name: Setup proxy and service
  hosts: somehost
  become: true
  roles:
    - role: mailman
      mailman_url: mailman.somehost.somewhere
      mailman_admin_user: admin
      mailman_admin_email: support@somehost.somewhere
      mailman_from_email: mailman@somehost.somewhere
    - role: traefik
      traefik_routes:
        - name: uptime
          host: "{{ uptime_url }}"
          srv: "{{ traefik_host_address }}:3001"
    - role: firewalld
      firewalld_add:
        - name: public
          services:
            - http
            - https
          forwards:
            - port: 80
              to: 8080
            - port: 443
              to: 8443

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-traefik.service
systemctl --user stop container-mailman.service

Deploy

ansible-playbook -i hosts site.yml --tags=firewalld,traefik,mailman --limit=somehost

Remove

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