Updates for setting up sodium-benzoate as a virtualization-host

pull/13/head
Zachary Seguin 6 years ago
parent 3e050b45b3
commit 78584af45c
  1. 1
      hosts
  2. 3
      install-syscom.yml
  3. 15
      roles/nfs/tasks/main.yml
  4. 10
      roles/virtualization-host/tasks/main.yml

@ -28,6 +28,7 @@ potassium-benzoate.csclub.uwaterloo.ca
munin.csclub.uwaterloo.ca
rt.csclub.uwaterloo.ca
netbox.csclub.uwaterloo.ca
sodium-benzoate.csclub.uwaterloo.ca
[audio-sink]
nullsleep.csclub.uwaterloo.ca

@ -1,11 +1,12 @@
---
- hosts: cobalamin.csclub.uwaterloo.ca
- hosts: sodium-benzoate.csclub.uwaterloo.ca
become: yes
become_method: sudo
roles:
- common
- core
- hardware
- virtualization-host
- generate-hosts
- auth
- csc-packages

@ -10,8 +10,21 @@
regexp='^NEED_GSSD=$'
line='NEED_GSSD=1'
- name: change NEED_STATD to NEED_STATD=1
lineinfile: dest=/etc/default/nfs-common
state=present
backrefs=yes
regexp='^NEED_STATD=$'
line='NEED_STATD=1'
when: ansible_distribution == 'Debian'
- name: restart and enable rpc-gssd
service: name=rpc-gssd state=started enabled=yes
service: name=rpc-gssd state=restarted enabled=yes
when: ansible_distribution == 'Ubuntu'
- name: restart and enable nfs-common
service: name=nfs-common state=restarted enabled=yes
when: ansible_distribution == 'Debian'
- name: ensure mountpoints exist
file: path={{ item }} state=directory

@ -0,0 +1,10 @@
---
- name: Install virtualization tools
apt: name={{ item }} state=latest
with_items:
- qemu
- qemu-kvm
- libvirt-bin
- bridge-utils
Loading…
Cancel
Save