Add a first cut at a virthost ansible playbook/group. Still needs some work.
This commit is contained in:
parent
ae4745501f
commit
c5e716c346
4 changed files with 67 additions and 0 deletions
28
tasks/virthost.yml
Normal file
28
tasks/virthost.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
# tasklist for setting up the virthost server.
|
||||
|
||||
- name: set selinux to enforcing
|
||||
selinux: policy=targeted state=enforcing
|
||||
|
||||
- name: install libvirt packages
|
||||
yum: pkg=$item state=installed
|
||||
with_items:
|
||||
- qemu-kvm
|
||||
- libvirtd
|
||||
- python-virtinst
|
||||
tags:
|
||||
- packages
|
||||
|
||||
# install libvirtd.conf
|
||||
#
|
||||
# This provides us with the ability to use virt-manager from non root accounts.
|
||||
#
|
||||
- name: install libvirtd.conf
|
||||
copy: src=$files/virthost/libvirtd.conf dest=/etc/libvirt/libvirtd.conf
|
||||
notify:
|
||||
- restart libvirtd
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: enable libvirtd
|
||||
service: name=libvirtd state=started enabled=yes
|
Loading…
Add table
Add a link
Reference in a new issue