28 lines
581 B
YAML
28 lines
581 B
YAML
|
# start services db
|
||
|
|
||
|
- name: Stopping existing service
|
||
|
community.docker.docker_compose:
|
||
|
project_src: "{{ project_src }}"
|
||
|
state: absent
|
||
|
|
||
|
- name: Starting service
|
||
|
community.docker.docker_compose:
|
||
|
project_src: "{{ project_src }}"
|
||
|
register: output
|
||
|
|
||
|
- name: debug output
|
||
|
debug:
|
||
|
var: output
|
||
|
|
||
|
- name: Allow port registry
|
||
|
ansible.builtin.iptables:
|
||
|
chain: INPUT
|
||
|
protocol: tcp
|
||
|
destination_port: 5000
|
||
|
jump: ACCEPT
|
||
|
state: present
|
||
|
vars:
|
||
|
ansible_become: yes
|
||
|
ansible_become_method: sudo
|
||
|
ansible_become_password: "{{ sudo_password }}"
|