|
|
@ -24,16 +24,17 @@
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
|
|
|
|
|
|
|
|
- import_playbook: ../playbooks/tailscale.yml # noqa: name[play]
|
|
|
|
- import_playbook: ../playbooks/tailscale.yml # noqa: name[play]
|
|
|
|
- import_playbook: postgres.yml # noqa: name[play]
|
|
|
|
|
|
|
|
- import_playbook: docker.yml # noqa: name[play]
|
|
|
|
- import_playbook: docker.yml # noqa: name[play]
|
|
|
|
|
|
|
|
- import_playbook: postgres.yml # noqa: name[play]
|
|
|
|
|
|
|
|
- import_playbook: redis.yml # noqa: name[play]
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set up postgres
|
|
|
|
- name: Listen on the docker interface
|
|
|
|
hosts: lotus-land-story
|
|
|
|
hosts: lotus-land-story
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set up postgres to listen on docker0 interface
|
|
|
|
- name: Set up postgres to listen on docker0 interface
|
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
dest: "/etc/postgresql/13/main/conf.d/listen.conf"
|
|
|
|
dest: /etc/postgresql/13/main/conf.d/listen.conf
|
|
|
|
regexp: '^#?listen_addresses='
|
|
|
|
regexp: '^#?listen_addresses='
|
|
|
|
line: "listen_addresses='localhost,{{ docker_ip.address }}'"
|
|
|
|
line: "listen_addresses='localhost,{{ docker_ip.address }}'"
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|