covas-deployment/db/tasks/stop-db.yml

38 lines
785 B
YAML
Raw Normal View History

2022-10-08 18:15:53 +02:00
# stop services db and redis
2022-10-05 23:37:45 +02:00
- name: Disallow port postgresql
ansible.builtin.iptables:
chain: INPUT
protocol: tcp
destination_port: 54321
jump: ACCEPT
state: absent
2022-10-20 16:47:03 +02:00
vars:
ansible_become: yes
ansible_become_method: sudo
ansible_become_password: "{{ sudo_password }}"
- name: Disallow port redis
ansible.builtin.iptables:
chain: INPUT
protocol: tcp
destination_port: 63791
jump: ACCEPT
state: absent
2022-10-20 16:47:03 +02:00
vars:
ansible_become: yes
ansible_become_method: sudo
ansible_become_password: "{{ sudo_password }}"
2022-10-05 23:37:45 +02:00
- name: Stopping existing service
community.docker.docker_compose:
project_src: /home/valentin/db
2022-10-08 18:15:53 +02:00
state: present
stopped: yes
2022-10-05 23:37:45 +02:00
register: output
- name: Debug output
debug:
var: output