Skip to content

Commit

Permalink
Merge pull request #5 from runningferret/fix_libvirt_pool_logic
Browse files Browse the repository at this point in the history
Fix libvirt pool logic
  • Loading branch information
jdoss authored Jan 19, 2018
2 parents e7d2664 + 044c3d5 commit e473cc4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
File renamed without changes.
5 changes: 4 additions & 1 deletion tasks/system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,19 @@
virt_pool:
command: destroy
name: default
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

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

- name: Define default pool from template
virt_pool:
Expand All @@ -61,7 +64,7 @@
autostart: yes
name: default

when: ansible_libvirt_pools.default.path != libvirt_storage_path
when: "ansible_libvirt_pools.default.path != libvirt_storage_path or ansible_libvirt_pools.default.path is not defined"

- block:

Expand Down
2 changes: 2 additions & 0 deletions tasks/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
path: /home/{{ local_user }}/.cert
state: directory
mode: 0750
owner: "{{ local_user }}"
group: "{{ local_user }}"

- name: Run restorecon on /home/{{ local_user }}/.cert
command: /usr/sbin/restorecon -R -v /home/{{ local_user }}/.cert

0 comments on commit e473cc4

Please sign in to comment.