Skip to content

Commit

Permalink
Third time's the charm...hopefully
Browse files Browse the repository at this point in the history
Full on COPYING the inventory file to a non-synced location, chmoding it, and passing it to ansible as our inventory of choice
  • Loading branch information
EvanK committed Jun 2, 2015
1 parent b9faec7 commit 88c69f9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions generator/app/templates/bin/provision
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ apt-get -qq -y update
apt-get -qq -y install ansible

# Permissions fix for Windows (genesis/wordpress#138)
find -L "$( dirname "$0" )/../provisioning/" -type d -exec chmod 775 {} \; -exec chmod g+s {} \;
find -L "$( dirname "$0" )/../provisioning/" -type f -exec chmod 622 {} \;
INVENTORY_FILE=/tmp/ansible-inventory-localhost
cp "$( dirname "$0" )/../provisioning/localhost" $INVENTORY_FILE
chmod 622 $INVENTORY_FILE

# Run provisioning playbook
(cd "$( dirname "$0" )/../provisioning" && ansible-playbook -i localhost $@ provision.yml)
(cd "$( dirname "$0" )/../provisioning" && ansible-playbook -i $INVENTORY_FILE $@ provision.yml)

0 comments on commit 88c69f9

Please sign in to comment.