2022-10-05 23:37:45 +02:00
|
|
|
---
|
|
|
|
# tasks file for server
|
|
|
|
|
2022-10-06 22:29:53 +02:00
|
|
|
- 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
|
|
|
|
|
2022-10-05 23:37:45 +02:00
|
|
|
- name: Stopping existing service
|
|
|
|
community.docker.docker_compose:
|
|
|
|
project_src: /home/valentin/db
|
|
|
|
state: absent
|
|
|
|
register: output
|
|
|
|
|
|
|
|
|
|
|
|
- name: Debug output
|
|
|
|
debug:
|
|
|
|
var: output
|
2022-10-06 22:29:53 +02:00
|
|
|
|