summaryrefslogtreecommitdiff
path: root/ansible/setup_dev_machine.sh
diff options
context:
space:
mode:
authorSrdjan Grubor <sgnn7@sgnn7.org>2014-01-14 15:42:34 -0600
committerSrdjan Grubor <sgnn7@sgnn7.org>2014-01-16 21:46:33 -0600
commitee539057a3e7387b95736dc85bd4d9af5c8e552c (patch)
tree1568461989bbb3785b15119df239fb6f9ac8fa00 /ansible/setup_dev_machine.sh
parent5214ed7a373ef9bea7c2028cbe60e264449da812 (diff)
Added code that can run sudo tasks and install turbine/transifex client
Diffstat (limited to 'ansible/setup_dev_machine.sh')
-rwxr-xr-xansible/setup_dev_machine.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/ansible/setup_dev_machine.sh b/ansible/setup_dev_machine.sh
index 9387570..dc20084 100755
--- a/ansible/setup_dev_machine.sh
+++ b/ansible/setup_dev_machine.sh
@@ -34,7 +34,8 @@ trap "rm -f $tmp_inventory" EXIT
echo "Creating Ansible inventory file in $tmp_inventory"
cat << EOF > $tmp_inventory
[dev_machine]
-dev_machine ansible_ssh_host=$TARGET_IP ansible_ssh_user="$TARGET_USER" ansible_ssh_pass="${TARGET_PASS}" ansible_connection=ssh
+dev_machine ansible_ssh_host=$TARGET_IP ansible_ssh_user="$TARGET_USER" ansible_sudo_pass="${TARGET_PASS}" ansible_ssh_pass="${TARGET_PASS}" ansible_connection=ssh
EOF
-ansible-playbook -i $tmp_inventory playbooks/setup_dev_machine.yaml
+ansible-playbook -i $tmp_inventory playbooks/setup_dev_machine_root.yaml
+ansible-playbook -i $tmp_inventory playbooks/setup_dev_machine_user.yaml