Skip to content

pogor-dev/home-infra

Repository files navigation

home-infra

Home infrastructure as a code

Dependencies

  1. Install sshpass on local machine
  2. Install NetworkManager-wifi on remote machine if WiFi support is needed
  3. Fix the SUDO permission by running chmod 4755 /usr/bin/sudo
  4. Remove Defaults noexec and Defaults requiretty from sudo visudo.

Commands

List inventory

ansible-inventory -i inventory/hosts.yaml --list

Encrypt secrets

ansible-vault encrypt_string --vault-password-file vars/vault_password.txt "password" --name 'key'

Running playbooks in syntax check mode

ansible-playbook -i inventory/hosts.yaml --vault-password-file vars/vault_password.txt --syntax-check init_infra.yaml

Running playbooks

ansible-playbook -i inventory/hosts.yaml --vault-password-file vars/vault_password.txt init_infra.yaml

About

Home infrastructure as a code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published