don't chmod +x on dump.sh if class not in production

pull/1/head
Raymond Yee 2016-05-13 15:17:16 -07:00
parent be232224ab
commit b7c44190be
2 changed files with 2 additions and 1 deletions

2
vagrant/Vagrantfile vendored
View File

@ -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

View File

@ -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 }}"