Home infrastructure as a code
- Install
sshpass
on local machine - Install
NetworkManager-wifi
on remote machine if WiFi support is needed - Fix the SUDO permission by running
chmod 4755 /usr/bin/sudo
- Remove
Defaults noexec
andDefaults requiretty
fromsudo visudo
.
ansible-inventory -i inventory/hosts.yaml --list
ansible-vault encrypt_string --vault-password-file vars/vault_password.txt "password" --name 'key'
ansible-playbook -i inventory/hosts.yaml --vault-password-file vars/vault_password.txt --syntax-check init_infra.yaml
ansible-playbook -i inventory/hosts.yaml --vault-password-file vars/vault_password.txt init_infra.yaml