ansible-roles/kvm-host/tasks/main.yml

22 lines
419 B
YAML
Raw Normal View History

2016-12-16 12:26:29 +01:00
---
- include: packages.yml
- name: Check if /usr is a partition
shell: "mount | grep 'on /usr type'"
args:
warn: no
changed_when: False
failed_when: False
#check_mode: no (for migration to Ansible 2.2)
always_run: yes
register: usr_partition
2016-12-16 12:26:29 +01:00
- name: Mount /usr in rw
command: mount -o remount,rw /usr
args:
warn: no
2016-12-16 12:26:29 +01:00
changed_when: False
when: usr_partition.rc == 0
2016-12-16 12:26:29 +01:00
- include: munin.yml