Commit abb324ff authored by Alain Takoudjou's avatar Alain Takoudjou

playbook: enable hotplugged CPU and Memory automatically in VM

parent 454e88c2
......@@ -45,6 +45,13 @@
when: is_playbook_ok in [False, "False"]
- include: ssh.yml
- name: Enable hotplugged CPU and Memory automatically
lineinfile: dest=/lib/udev/rules.d/80-hotplug-cpu-mem.rules state=present create=yes line="{{ item }}"
with_items:
- 'SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"'
- 'SUBSYSTEM=="memory", ACTION=="add", TEST=="state", ATTR{state}=="offline", ATTR{state}="online"'
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Debian"
- file: path=/opt/upgrader state=directory
- stat: path=/opt/upgrader/last-upgrade
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment