Skip to content

Commit

Permalink
ENH: require manually providing the doas password
Browse files Browse the repository at this point in the history
  • Loading branch information
ZLLentz committed Mar 8, 2024
1 parent f71a06a commit a2e292f
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion group_vars/tcbsd_plcs/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
ansible_user: Administrator
ansible_become: true
ansible_become_method: doas
ansible_become_password: 1 # TODO: vault
ansible_python_interpreter: /usr/local/bin/python3

# FreeBSD packages are no longer required, beckhoff added py39-lxml again.
Expand Down
1 change: 0 additions & 1 deletion host_vars/plc-tmo-tmp-vac/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ tc_ams_net_id: 172.21.132.78.1.1
#ansible_user: Administrator
#ansible_become: true
#ansible_become_method: doas
#ansible_become_password: 1 # TODO: vault
#ansible_python_interpreter: /usr/local/bin/python3
#
## FreeBSD packages are no longer required, beckhoff added py39-lxml again.
Expand Down
1 change: 0 additions & 1 deletion host_vars/plc-tst-bsd1/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ tc_ams_net_id: 172.21.148.81.1.1
#ansible_user: Administrator
#ansible_become: true
#ansible_become_method: doas
#ansible_become_password: 1 # TODO: vault
#ansible_python_interpreter: /usr/local/bin/python3
#
## FreeBSD packages are no longer required, beckhoff added py39-lxml again.
Expand Down
1 change: 0 additions & 1 deletion host_vars/plc-tst-bsd2/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ tc_ams_net_id: 172.21.148.94.1.1
#ansible_user: Administrator
#ansible_become: true
#ansible_become_method: doas
#ansible_become_password: 1 # TODO: vault
#ansible_python_interpreter: /usr/local/bin/python3
#
## FreeBSD packages are no longer required, beckhoff added py39-lxml again.
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap_plc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ ssh -F "${SSH_CONFIG}" -i "${SSH_KEY_FILENAME}" "${USERNAME}@${HOSTNAME}" "test
scp -F "${SSH_CONFIG}" -i "${SSH_KEY_FILENAME}" -r "${SOURCE_DIR}" "${USERNAME}@${HOSTNAME}:~/bootstrap"

# Run the local install version of the bootstrap playbook
ansible-playbook "${ANSIBLE_ROOT}/tcbsd-bootstrap-from-local-playbook.yaml" --extra-vars "target=${HOSTNAME} ansible_ssh_private_key_file=${SSH_KEY_FILENAME}" "$@"
ansible-playbook "${ANSIBLE_ROOT}/tcbsd-bootstrap-from-local-playbook.yaml" --extra-vars "target=${HOSTNAME} ansible_ssh_private_key_file=${SSH_KEY_FILENAME}" --ask-become-pass "$@"
2 changes: 1 addition & 1 deletion scripts/provision_plc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ if [ ! -x ansible-playbook ]; then
fi

# Run the provision playbook
ansible-playbook "${ANSIBLE_ROOT}/tcbsd-provision-playbook.yaml" --extra-vars "target=${TARGET} ansible_ssh_private_key_file=${SSH_KEY_FILENAME}" "$@"
ansible-playbook "${ANSIBLE_ROOT}/tcbsd-provision-playbook.yaml" --extra-vars "target=${TARGET} ansible_ssh_private_key_file=${SSH_KEY_FILENAME}" --ask-become-pass "$@"

0 comments on commit a2e292f

Please sign in to comment.