Copy from GitHub repo

This commit is contained in:
Dmitry Vlasov
2020-08-12 00:02:27 +03:00
parent c447c45bbb
commit 42ae66e3ec
90 changed files with 5632 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
---
- hosts: bonchvisors
remote_user: cephadmin
become: true
become_user: root
become_method: sudo
tasks:
tasks:
- name: create nested-vm enabling file
copy:
src: /etc/ansible/files/kvm-nested.conf
dest: /etc/modprobe.d/kvm-nested.conf
owner: root
group: root
mode: 0644
- name: disable && enable kvm_intel module
shell: modprobe -r kvm_intel && modprobe -a kvm_intel
args:
executable: /bin/bash
- name: check nested vm enabled
shell: cat /sys/module/kvm_intel/parameters/nested
args:
executable: /bin/bash
register: nested_vm
- name: get nested vm enabled state
debug:
msg: "{{ nested_vm.stdout }}"