Skip to content

dbeley/ansible-playbooks

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Ansible playbooks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published