No description
  • Dockerfile 100%
Find a file
2026-04-05 19:45:53 +00:00
defaults initial commit 2026-04-05 19:45:53 +00:00
files 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-vs

Task Configuration

- name: Setup vs
  hosts: somehost
  become: true
  roles:
    - role: vs
      vs_db_name: somedatabase
      vs_db_user someuser
      vs_db_password somepassword
    - role: firewalld
      firewalld_add:
        - name: public
          ports:
            - 5432/tcp

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-vs.service

Deploy

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

Remove

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