Skip to content
Snippets Groups Projects
Commit 1c0b9569 authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

Merge branch 'OSImageBugfix' into 'master'

add a role for OpenStackImageBugfixs

See merge request !495
parents 433fead3 1c1de654
No related branches found
No related tags found
1 merge request!495add a role for OpenStackImageBugfixs
---
# This role is to fix a misconfiguration of some OpenStack Base images at Monash University.
# the misconfiguration is dev/vdb mounted in fstab of the Image and the Openstack Flavour not providing a second disk.
- name: unmount vdb if absent
mount:
path: "/mnt"
src: "/dev/vdb"
state: absent
become: true
when: 'hostvars[inventory_hostname]["ansible_devices"]["vdb"] is not defined'
- name: keep mnt present
file:
path: "/mnt"
owner: root
group: root
mode: "u=rwx,g=rx,o=rx"
state: directory
become: true
when: 'hostvars[inventory_hostname]["ansible_devices"]["vdb"] is not defined'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment