diff --git a/hosts b/hosts index 21832c7..a38a968 100644 --- a/hosts +++ b/hosts @@ -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 diff --git a/install-syscom.yml b/install-syscom.yml index 9ea1e94..d7fece4 100644 --- a/install-syscom.yml +++ b/install-syscom.yml @@ -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 diff --git a/roles/nfs/tasks/main.yml b/roles/nfs/tasks/main.yml index 8a35c83..39808f4 100644 --- a/roles/nfs/tasks/main.yml +++ b/roles/nfs/tasks/main.yml @@ -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 diff --git a/roles/virtualization-host/tasks/main.yml b/roles/virtualization-host/tasks/main.yml new file mode 100644 index 0000000..8393cde --- /dev/null +++ b/roles/virtualization-host/tasks/main.yml @@ -0,0 +1,10 @@ +--- +- name: Install virtualization tools + apt: name={{ item }} state=latest + with_items: + - qemu + - qemu-kvm + - libvirt-bin + - bridge-utils + +