An open API service indexing awesome lists of open source software.

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.

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.