Skip to content

Instantly share code, notes, and snippets.

View nimro27's full-sized avatar

Johannes Zumthurm nimro27

  • ETH Zürich
  • Switzerland
View GitHub Profile
@nimro27
nimro27 / vault_cred_cache
Last active March 13, 2025 10:31
Ansible vault script using git credential-cache
#!/usr/bin/env python3.8
"""
Author: Johannes Zumthurm <[email protected]>
This script allows the ansible vault password for running playbooks to be temporarily
stored in the git credential-cache. The git credential cache can be configured using:
git config credential.helper 'cache --timeout=3600'