Skip to content

Commit

Permalink
Merge pull request #6 from jdoss/fix_nfs_firewall
Browse files Browse the repository at this point in the history
Fix whitespace, nfs service name and firewalld task.
  • Loading branch information
jdoss authored Jan 19, 2018
2 parents e473cc4 + 317338c commit 71f11df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup_workstation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
- include_tasks: tasks/harden.yml

handlers:
- include_tasks: handlers/handlers.yml
- include_tasks: handlers/main.yml
2 changes: 1 addition & 1 deletion tasks/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

- name: Enable nfs-server
service:
name: nfs-server
name: nfs
enabled: yes
when: enable_vagrant_nfs

Expand Down
8 changes: 5 additions & 3 deletions tasks/system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@
virt_pool:
command: destroy
name: default
when: ansible_libvirt_pools.default.path is defined
when: ansible_libvirt_pools.default.path is defined

- name: Set default pool to inactive
virt_pool:
state: inactive
name: default
when: ansible_libvirt_pools.default.path is defined
when: ansible_libvirt_pools.default.path is defined

- name: Undefine default pool
virt_pool:
command: undefine
name: default
when: ansible_libvirt_pools.default.path is defined
when: ansible_libvirt_pools.default.path is defined

- name: Define default pool from template
virt_pool:
Expand Down Expand Up @@ -76,8 +76,10 @@

- name: Allow connections to NFS in the firewall
firewalld:
zone: FedoraWorkstation
service: "{{ item }}"
permanent: true
immediate: true
state: enabled
with_items:
- nfs
Expand Down

0 comments on commit 71f11df

Please sign in to comment.