Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thibmaek/ansible-infra
📕Ansible playbooks for Raspberry Pi, Linux and Mac
https://github.com/thibmaek/ansible-infra
ansible linux mac raspberry-pi thibmaek-com
Last synced: 2 months ago
JSON representation
📕Ansible playbooks for Raspberry Pi, Linux and Mac
- Host: GitHub
- URL: https://github.com/thibmaek/ansible-infra
- Owner: thibmaek
- Created: 2020-03-15T16:26:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T21:16:45.000Z (4 months ago)
- Last Synced: 2024-09-11T01:20:04.800Z (4 months ago)
- Topics: ansible, linux, mac, raspberry-pi, thibmaek-com
- Language: Jinja
- Homepage:
- Size: 12.5 MB
- Stars: 10
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible Playbooks
## Getting started
__Make sure SSH configs are set up according to inventory.yaml!__
```shell
# Setup this repo:
$ make install# Perform a play:
$ ansible-playbook -v playbooks/init_server.yaml# Performa a play on a specific host:
$ ansible-playbook -v playbooks/common.yaml -l rpi_node_tresor# Perform a play directly on current host:
$ make play_local playbook=playbooks/local/macos.yaml
```## Order of running plays (Debian)
![Mermaid](https://mermaid.ink/img/pako:eNpdj9EKgzAMRX9F8qz7gA725L5geyyM0EYts63UVBjivy9OHWP3IST3HkIyg4mWQEGbcOiKe33WoRC54PgxUpooVdVlJM7DPm75ryOAid7HsEVbL6aN5nnwX1Oq45hcaP-C00dQgqfk0Vm5aV4RDdyRJw1KWksN5p416LAImgeLTFe7bgTVYD9SCZg53l7BgOKU6YBqh_Ki36nlDXsqU-I)
## Styleguide
This follows:
- [Ansible Best Practices](https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html)
- [Whitecloud Ansible Styleguide](https://github.com/whitecloud/ansible-styleguide)## Performing common plays
Common plays (like common.yaml and upgrades.yaml) are available with make:
- `make play_common`
- `make play_upgrade`## Encrypting secrets (via vault)
```console
ansible-vault encrypt_string 'secret' --name 'var_name'
```