Skip to content

numerica-ansible/ansible-create-module-role

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible-create-module-role

Usage of a role for setting a git_key encrypted with Ansible Vault.

Go to module/defaults/

Type

ansible-vault encrypt main.yml

enter a secret password.

and save it in a file located in the home directory.

vi /home/<home_directory>/mysecret

You can run the playbook with the following command.

ansible-playbook -i inventory --vault-password-file /home/<home_directory>/mysecret playbook.yml

or declare a global environment variable beforehand or it should be placed in your .bash_profile file.

export ANSIBLE_VAULT_PASSWORD_FILE=/home/<home_directory>/mysecret

and type the playbook as the normal way

ansible-playbook -i inventory playbook.yml

About

how to write an add-on Ansible-module and set Ansible-Vault

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%