apatel762 / home-infra

A repository containing all of the setup for my home infra (e.g. my laptop & soon, my server)
GNU Affero General Public License v3.0
0 stars 0 forks source link

Make the runner scripts change playbook args if secrets files are not present #116

Closed apatel762 closed 1 year ago

apatel762 commented 1 year ago

And remove the TODO comment.

If the file is empty, do nothing? What happens if we supply a sudo password and the account doesn't need it?

apatel762 commented 1 year ago

My current thinking is that it'd be easiest to construct an array of params in the bash script (https://linuxhandbook.com/bash-arrays/) and then pass that directly to the ansible-playbook command.