summaryrefslogtreecommitdiff
path: root/ansible/setup_dev_machine.sh
diff options
context:
space:
mode:
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