2020-01-17 21:00:14 +00:00
|
|
|
---
|
2020-08-21 13:44:43 +00:00
|
|
|
- name: Converge (Stage 1)
|
2020-01-17 21:00:14 +00:00
|
|
|
hosts: all
|
2020-06-20 13:29:36 +00:00
|
|
|
vars:
|
|
|
|
dockerengine_packages_extra:
|
|
|
|
- epel-release
|
|
|
|
- python-pip
|
2020-06-23 10:57:45 +00:00
|
|
|
- python-virtualenv
|
2020-08-21 13:44:43 +00:00
|
|
|
|
|
|
|
roles:
|
|
|
|
- role: xoxys.docker_engine
|
|
|
|
|
|
|
|
- name: Converge (Stage 2)
|
|
|
|
hosts: all
|
|
|
|
environment:
|
|
|
|
PYTHONPATH: /opt/python2/ansible-deps/lib/python2.7/site-packages
|
|
|
|
vars:
|
2020-01-17 21:00:14 +00:00
|
|
|
postgres_repository_enabled: True
|
|
|
|
postgres_connection_addresses:
|
|
|
|
- "{{ ansible_docker0.ipv4.address }}"
|
|
|
|
postgres_users:
|
2021-05-15 14:05:35 +00:00
|
|
|
- name: "pgvaultwarden"
|
2020-01-17 21:00:14 +00:00
|
|
|
password: "secure"
|
|
|
|
priv: ALL
|
2021-05-15 14:05:35 +00:00
|
|
|
db: "vaultwarden"
|
2020-01-17 21:00:14 +00:00
|
|
|
postgres_dbs:
|
2021-05-15 14:05:35 +00:00
|
|
|
- name: "vaultwarden"
|
2020-01-17 21:00:14 +00:00
|
|
|
postgres_hba_entries_extra:
|
|
|
|
- contype: host
|
|
|
|
databases:
|
|
|
|
- all
|
|
|
|
users:
|
|
|
|
- all
|
|
|
|
address: "172.18.0.0/16"
|
|
|
|
auth_method: md5
|
2021-05-15 14:05:35 +00:00
|
|
|
vaultwarden_db_server: "{{ ansible_docker0.ipv4.address }}"
|
2020-01-17 21:00:14 +00:00
|
|
|
|
|
|
|
roles:
|
|
|
|
- role: xoxys.postgres
|
2021-05-15 14:05:35 +00:00
|
|
|
- role: xoxys.vaultwarden_docker
|