2022-10-08 18:15:53 +02:00
|
|
|
# start services db
|
2022-10-05 23:37:45 +02:00
|
|
|
|
2022-10-08 18:15:53 +02:00
|
|
|
- name: Stopping existing service
|
|
|
|
community.docker.docker_compose:
|
|
|
|
project_src: /home/valentin/db
|
|
|
|
|
|
|
|
- name: Starting service
|
|
|
|
community.docker.docker_compose:
|
|
|
|
project_src: /home/valentin/db
|
|
|
|
register: output
|
|
|
|
|
|
|
|
- name: debug output
|
|
|
|
debug:
|
|
|
|
var: output
|
|
|
|
|
|
|
|
- name: Allow port postgresql
|
2022-10-06 22:29:53 +02:00
|
|
|
ansible.builtin.iptables:
|
|
|
|
chain: INPUT
|
|
|
|
protocol: tcp
|
|
|
|
destination_port: 54321
|
|
|
|
jump: ACCEPT
|
2022-10-08 18:15:53 +02:00
|
|
|
state: present
|
2022-10-06 22:29:53 +02:00
|
|
|
become: yes
|
|
|
|
become_method: sudo
|
|
|
|
|
2022-10-08 18:15:53 +02:00
|
|
|
- name: Allow port redis
|
2022-10-06 22:29:53 +02:00
|
|
|
ansible.builtin.iptables:
|
|
|
|
chain: INPUT
|
|
|
|
protocol: tcp
|
|
|
|
destination_port: 63791
|
|
|
|
jump: ACCEPT
|
2022-10-08 18:15:53 +02:00
|
|
|
state: present
|
2022-10-06 22:29:53 +02:00
|
|
|
become: yes
|
2022-10-08 18:15:53 +02:00
|
|
|
become_method: sudo
|