26 lines
515 B
YAML
26 lines
515 B
YAML
|
# stop services db and redis
|
||
|
|
||
|
- name: Disallow port postgresql
|
||
|
ansible.builtin.iptables:
|
||
|
chain: INPUT
|
||
|
protocol: tcp
|
||
|
destination_port: 5000
|
||
|
jump: ACCEPT
|
||
|
state: absent
|
||
|
vars:
|
||
|
ansible_become: yes
|
||
|
ansible_become_method: sudo
|
||
|
ansible_become_password: "{{ sudo_password }}"
|
||
|
|
||
|
- name: Stopping existing service
|
||
|
community.docker.docker_compose:
|
||
|
project_src: "{{ project_src }}"
|
||
|
state: present
|
||
|
stopped: yes
|
||
|
register: output
|
||
|
|
||
|
|
||
|
- name: Debug output
|
||
|
debug:
|
||
|
var: output
|