diff options
| author | Mike Vink <mike.vink@stater.nl> | 2023-04-24 12:46:28 +0200 |
|---|---|---|
| committer | Mike Vink <mike.vink@stater.nl> | 2023-04-24 12:46:28 +0200 |
| commit | 27afc5532fb29181ae554a1e84a311a98c8291ee (patch) | |
| tree | e064f5ca2428877dab273d6ed63a4060b0dbf0c4 /templates/ansible | |
| parent | 4140c4916d15ba5d519f401782ed8a3a5632fa49 (diff) | |
add initool and ansible template
Diffstat (limited to 'templates/ansible')
| -rw-r--r-- | templates/ansible/flake.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/ansible/flake.nix b/templates/ansible/flake.nix index 0e722a0..c14b59a 100644 --- a/templates/ansible/flake.nix +++ b/templates/ansible/flake.nix @@ -28,11 +28,18 @@ name = "dev"; buildInputs = [ poetry + pkgs.ansible-language-server ]; shellHook = '' [[ -f ./.venv/bin/activate ]] && { source ./.venv/bin/activate source ~/awx-login.sh + # NOTE(mike): this is necessary to make ansible-lint work with + # playbooks that use: + #vars_files: + # - ./secrets/vault.yaml + initool s ansible.cfg defaults vault_identity devena | initool s - defaults vault_password_file ~/pass-ansible-vault-client > /tmp/ansible.cfg + cp /tmp/ansible.cfg ansible.cfg } ''; }; |
