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

Improve usability of the `make apply` command for the workstation playbook #88

Closed apatel762 closed 2 years ago

apatel762 commented 2 years ago

turn it into an interactive script instead of just a few commands

search for the Ansible Vault password in a password file (if not found, will print a warning to the terminal); see this snippet as an example: https://github.com/apatel762/home-infra/blob/a5a8ca5433b9b7c5bc529a8e8280077757faa77d/.archive/ansible/run.sh#L26-L46

if possible, search for the sudo password in a password file and use that when running the playbook? not sure if this is safe but would be nice because it'd save the hassle of having to type it each time you want to run the playbook

automatically append the different flags to the Ansible command as we are going through the above checks

use set -x to log the command before running it