Skip to content

Commit

Permalink
Ensure firewalld is installed and configured
Browse files Browse the repository at this point in the history
Now runner preparation does not configure firewalld service and
open ports for NFS related services. As the result Vagrant can't
mount NFS directory so no task will be run.

This patch eliminates this kind of thing.
  • Loading branch information
Aleksei Slaikovskii committed Apr 3, 2018
1 parent 6a82d90 commit 7947de2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ansible/roles/runner/tasks/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- createrepo
- gzip
- gcc
- firewalld
- python3-devel
- python3-pip
- redhat-rpm-config
Expand All @@ -39,9 +40,31 @@
- python3-tqdm
- python3-pytz
- python3-jinja2
- python-firewall
- python3-firewall
notify:
- restart_nfs

- name: enable firewalld
service:
name: firewalld
enabled: true
state: started

- name: configure firewalld
firewalld:
service : "{{ item }}"
permanent: true
state: enabled
with_items:
- nfs
- ipp
- rpc-bind
- mountd

- name: reload firewalld
shell: firewall-cmd --reload

- name: start&enable nfs
service:
name: nfs
Expand Down

0 comments on commit 7947de2

Please sign in to comment.