From b7c44190be213933c2091c9fb7d6bd92464ee294 Mon Sep 17 00:00:00 2001 From: Raymond Yee Date: Fri, 13 May 2016 15:17:16 -0700 Subject: [PATCH] don't chmod +x on dump.sh if class not in production --- vagrant/Vagrantfile | 2 +- vagrant/dev.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index 57f1aeb9..9d8602e7 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -29,7 +29,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| "-e class=please", "-e hostname=please.unglue.it", "-e setdns=true", - "-e branch=master" + "-e branch=sysadmin" ] end diff --git a/vagrant/dev.yml b/vagrant/dev.yml index 14fda79e..99141625 100644 --- a/vagrant/dev.yml +++ b/vagrant/dev.yml @@ -441,6 +441,7 @@ - name: chmod +x dump.sh file: path=/home/{{user}}/dump.sh state=file owner={{user}} group={{user}} mode=0745 + when: class in ['prod'] - name: put an empty file in main dir to help identify this instance command: touch "/home/{{user}}/{{class}}_{{ ansible_date_time.iso8601 }}"