Change owner only if we are not in vagrant env

Change-Id: I737c382ea9bdb86753dcdcffc74362e6e59c5dc2
Closes-bug: 1541436
This commit is contained in:
Łukasz Oleś 2016-02-08 12:45:49 +01:00
parent f4da49538b
commit 713303df8f
1 changed files with 6 additions and 0 deletions

View File

@ -17,7 +17,13 @@
# setup solar-resources
# change to openstack/solar-resources later
- git: repo=https://github.com/Mirantis/solar-resources.git dest=/vagrant/solar-resources update=no
- shell: 'mount|grep " /vagrant"'
register: vagrant_mounted
ignore_errors: True
- file: path=/vagrant/solar-resources owner=vagrant group=vagrant recurse=yes
when: vagrant_mounted|failed
- shell: pip install gevent
# set default config location
- lineinfile: