35 lines
628 B
YAML
35 lines
628 B
YAML
# stop services db and redis
|
|
|
|
- name: Disallow port postgresql
|
|
ansible.builtin.iptables:
|
|
chain: INPUT
|
|
protocol: tcp
|
|
destination_port: 54321
|
|
jump: ACCEPT
|
|
state: absent
|
|
become: yes
|
|
become_method: sudo
|
|
|
|
|
|
- name: Disallow port redis
|
|
ansible.builtin.iptables:
|
|
chain: INPUT
|
|
protocol: tcp
|
|
destination_port: 63791
|
|
jump: ACCEPT
|
|
state: absent
|
|
become: yes
|
|
become_method: sudo
|
|
|
|
- name: Stopping existing service
|
|
community.docker.docker_compose:
|
|
project_src: /home/valentin/db
|
|
state: present
|
|
stopped: yes
|
|
register: output
|
|
|
|
|
|
- name: Debug output
|
|
debug:
|
|
var: output
|