db-deploy #1

Merged
v4l3n71n merged 6 commits from db-deploy into master 2022-10-08 17:13:21 +00:00
2 changed files with 43 additions and 1 deletions
Showing only changes of commit 10f4f4863a - Show all commits

View File

@ -47,3 +47,23 @@
- name: debug output - name: debug output
debug: debug:
var: output var: output
- name: Allow port postgresql
ansible.builtin.iptables:
chain: INPUT
protocol: tcp
destination_port: 54321
jump: ACCEPT
state: present
become: yes
become_method: sudo
- name: Allow port redis
ansible.builtin.iptables:
chain: INPUT
protocol: tcp
destination_port: 63791
jump: ACCEPT
state: present
become: yes
become_method: sudo

View File

@ -1,6 +1,27 @@
--- ---
# tasks file for server # tasks file for server
- 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 - name: Stopping existing service
community.docker.docker_compose: community.docker.docker_compose:
project_src: /home/valentin/db project_src: /home/valentin/db
@ -11,3 +32,4 @@
- name: Debug output - name: Debug output
debug: debug:
var: output var: output