GitXplorerGitXplorer
m

ansible-vault-demo

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
226e57c70dc3400451c3f95eec582dc4cc65bbf6

Update .gitignoe

mmalemburg committed 4 years ago
Unverified
b2327680d318bd6f9918ba2515bf9d8d42d899bb

Ignore all hidden files

mmalemburg committed 4 years ago
Unverified
f1c5a18c26f8aae1119753b6b4553e9c478eab3e

Make the project hosts group var file a proper YAML file

mmalemburg committed 4 years ago
Unverified
235d6a5c78b260e6eb83874f7d6d0c3da0d0549e

Get user name from OS environ

mmalemburg committed 4 years ago
Unverified
4adef0a2c7b88e15b124156c10a13c8fcb1d6629

Remove option for asking vault password

mmalemburg committed 4 years ago
Unverified
329356019f12c136287fef024a6b9029e7197b01

Add more details.

mmalemburg committed 4 years ago

README

The README file for this repository.

Ansible Vault Demo Repository

This repo is used as demo repository for the Ansible Vault talk at Python Meeting Düsseldorf 2020-09-30.

Configuration

ansible.cfg : Sets the default Ansible parameters

hosts.ini / hosts.yml : Hosts inventory; as INI of YAML file

site.yml : Playbook

group_vars : Group variable files

.vault-password : Vault password file (DO NOT COMMIT TO REPO!)

Installation

Run

make install

Then test with

ansible demo-host -m ping

Note: You may have to edit the configuration files to match your setup.

Commands

List host inventory:

ansible-inventory --list

Edit secret variables:

ansible-vault edit group_vars/project_secrets.yml

Run playbook:

ansible-playbook site.yml