No description
| defaults | ||
| meta | ||
| tasks | ||
| .gitignore | ||
| README.md | ||
ansible-roles-couchdb
- https://docs.couchdb.org/en/stable/install/docker.html
- https://github.com/apache/couchdb-docker
- https://hub.docker.com/_/couchdb/
- https://www.erlang.org/doc/apps/erts/erl_cmd.html#environment-variables
Task Configuration
- name: Setup couchdb
hosts: somehost
become: true
roles:
- role: couchdb
couchdb_db_name: somedatabase
couchdb_db_user someuser
couchdb_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-couchdb.service
Deploy
ansible-playbook -i hosts site.yml --tags=firewalld,couchdb --limit=somehost
Remove
ansible-playbook -i hosts site.yml --tags=firewalld,couchdb --extra-vars "container_state=absent firewall_action=remove" --limit=somehost