Skip to content
Ansible playbooks.
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
ansible.cfg
apt-upgrade.yml
install-env.yml
test.yml

README.md

ansible-playbooks

Requirements

  • Ansible vault named secret :
ansible-vault create secret
  • with this content :
ansible_sudo_pass: password_here
  • Host file named hosts :
[group1]
host1
[group2]
host2
...
  • 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
You can’t perform that action at this time.