Skip to content

Configuration

ansible.cfg

ansible.cfg
[defaults]
nocows = true
callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer

# Use the YAML callback plugin.
stdout_callback = yaml
# stdout_callback = json

# Use the stdout_callback when running ad-hoc commands.
# bin_ansible_callbacks = True

# For display stats in summary in section CUSTOM STATS
show_custom_stats = true

force_color = true

[color]

# Change Color
skip = "orange"

Launch Playbook with vaulted files

Bash
ansible-playbook playbook.yml  --ask-vault-password

Launch Playbook with configured vault password file

Need to put the password in user home directory in file

Bash
export ANSIBLE_VAULT_PASSWORD_FILE=~/.vault_password
ansible-playbook playbook.yml