No description
| defaults | ||
| meta | ||
| tasks | ||
| .gitignore | ||
| README.md | ||
ansible-roles-codimd
This role is designed to deploy uptime kuma as a standalone podman container
Task Configuration
Define codimd_url, this will useful in conjunction with a proxy role such as traefik or nginx
Define codimd_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
- codimd_db_pass
- codimd_mail_pass
- name: Setup proxy and service
hosts: somehost
become: true
roles:
- role: codimd
codimd_url: codimd.somehost.somewhere
codimd_enable_openid_signin: true
codimd_enable_openid_signup: true
codimd_mail_outgoing_enable: true
codimd_mail_outgoing_port: 587
codimd_mail_outgoing_host: mail.somehost.somewhere
codimd_mail_outgoing_user: git@somehost.somewhere
codimd_mail_outgoing_pass: "{{ codimd_mail_pass }}"
codimd_mail_incoming_enabled: true
codimd_mail_incoming_tls: true
codimd_mail_incoming_reply_to: git+%{token}@somehost.somewhere
codimd_mail_incoming_host: mail.somehost.somewhere
codimd_mail_incoming_port: 143
codimd_mail_incoming_user: git@somehost.somewhere
codimd_mail_incoming_pass: "{{ codimd_mail_pass }}"
- 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-codimd.service
Deploy
ansible-playbook -i hosts site.yml --tags=firewalld,traefik,codimd --limit=somehost
Remove
ansible-playbook -i hosts site.yml --tags=firewalld,traefik,codimd --extra-vars "container_state=absent firewall_action=remove" --limit=somehost