From 713303df8fcc0ff7b52a484a8eaaae58f0f7a17f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Ole=C5=9B?= Date: Mon, 8 Feb 2016 12:45:49 +0100 Subject: [PATCH] Change owner only if we are not in vagrant env Change-Id: I737c382ea9bdb86753dcdcffc74362e6e59c5dc2 Closes-bug: 1541436 --- bootstrap/playbooks/solar.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bootstrap/playbooks/solar.yaml b/bootstrap/playbooks/solar.yaml index f964cd36..330d31dd 100644 --- a/bootstrap/playbooks/solar.yaml +++ b/bootstrap/playbooks/solar.yaml @@ -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: