Updating roles
This commit is contained in:
parent
9aa0a89b79
commit
33cf371a0d
@ -61,3 +61,11 @@
|
|||||||
when: qemubr.changed or br0.changed
|
when: qemubr.changed or br0.changed
|
||||||
debug:
|
debug:
|
||||||
msg: You may need to restart VMs on the Node.
|
msg: You may need to restart VMs on the Node.
|
||||||
|
|
||||||
|
- name: Enable VMs
|
||||||
|
become: yes
|
||||||
|
with_items: "{{ active_vms }}"
|
||||||
|
service:
|
||||||
|
name: "{{ item }}-vm.service"
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
- name: Check /var free percentage
|
- name: Check /var free percentage
|
||||||
command: /bin/bash -c "df -m /var | tail -n 1 | awk '{ print $5; }' | sed 's/%//' "
|
command: /bin/bash -c "df -m /var | tail -n 1 | awk '{ print \$5; }' | sed 's/%//'"
|
||||||
become: no
|
become: no
|
||||||
register: df_output
|
register: df_output
|
||||||
|
|
||||||
- name: Verify /var space
|
- name: Verify /var space
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- 90 > {{ df_output.stdout }}
|
- 90 > df_output.stdout|int
|
||||||
fail_msg: "Not enough free space"
|
fail_msg: "Not enough free space"
|
||||||
|
|
||||||
- name: Update Archlinux Keyring
|
- name: Update Archlinux Keyring
|
||||||
@ -31,4 +31,3 @@
|
|||||||
when: '"linux" in updates.stdout or "kernel" in updates.stdout'
|
when: '"linux" in updates.stdout or "kernel" in updates.stdout'
|
||||||
reboot:
|
reboot:
|
||||||
reboot_timeout: 2
|
reboot_timeout: 2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user