https://github.com/dbeley/ansible-playbooks
Ansible playbooks.
https://github.com/dbeley/ansible-playbooks
ansible ansible-playbook
Last synced: 10 months ago
JSON representation
Ansible playbooks.
- Host: GitHub
- URL: https://github.com/dbeley/ansible-playbooks
- Owner: dbeley
- Created: 2020-03-05T23:36:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-10T12:09:32.000Z (over 5 years ago)
- Last Synced: 2025-06-02T12:30:36.411Z (about 1 year ago)
- Topics: ansible, ansible-playbook
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansible-playbooks
## Requirements
- Ansible vault named secret (for sudo):
```
ansible-vault create secret
```
- with this content:
```
ansible_sudo_pass: password_here
```
- A valid hosts.yml file. Use the provided hosts_example.yml file for an example.
- secret.sh script (to decrypt ansible vault) :
```
#!/usr/bin/env bash
echo password_here
```
```
chmod +x secret.sh
```
### Running a playbook
```
ansible-playbook test.yml --vault-password-file secret.sh --ask-pass
```
- --ask-pass : password for ssh without auth
- --ask-become-pass : password for sudo
## Playbooks
- test.yml: Test all the hosts (ping + df)
- install.yml: Install roles (docker, telegraf)
- upgrade.yml: Upgrade all hosts (only apt is supported)
Before using any playbook, create an `all.yml` file based on `all_example.yml` in the `group_vars` with your own values.