Skip to content

nagromc/raspberry-pi-ansible

Repository files navigation

Prerequisite

  • Ansible
  • Vagrant
  • VirtualBox

Development

Initializing a minimal environment

vagrant up

Deploying a playbook

Run the following command:

ansible-playbook --inventory inventory/dev playbook.yaml

Production

Secrets file

  • Create a file containing the required secrets changing the desired values:

    echo 'smb_user: the_user\nsmb_password: the_password' > secrets
  • Create a file containting the encryption key:

    echo 'superSecretVaultPassword' > vault-password
  • Encrypt the file:

    ansible-vault encrypt --vault-password-file vault-password secrets

Deployment

ansible-playbook --inventory inventory/prod --extra-vars @secrets --vault-password-file vault-password playbook.yaml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published