mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 11:27:09 +00:00
deploy: Only configure firewall if it's already running
This commit is contained in:
@@ -223,6 +223,9 @@
|
||||
- uwsgi
|
||||
- rh-nginx114-nginx
|
||||
|
||||
- name: Populate service facts
|
||||
service_facts:
|
||||
|
||||
- name: Open webserver ports on firewall
|
||||
firewalld:
|
||||
service: '{{ item }}'
|
||||
@@ -232,4 +235,4 @@
|
||||
loop:
|
||||
- http
|
||||
- https
|
||||
when: vagrant_dir.stat.exists == False
|
||||
when: ansible_facts.services['firewalld.service'] is defined and ansible_facts.services['firewalld.service'].state == 'running'
|
||||
|
||||
Reference in New Issue
Block a user