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 | |
| parent | 4140c4916d15ba5d519f401782ed8a3a5632fa49 (diff) | |
add initool and ansible template
| -rw-r--r-- | home/packages.nix | 2 | ||||
| -rw-r--r-- | templates/ansible/flake.nix | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/home/packages.nix b/home/packages.nix index 073d2db..cf35d16 100644 --- a/home/packages.nix +++ b/home/packages.nix @@ -13,6 +13,8 @@ kubectl krew jq + dasel + initool # shell tools powershell azure-cli 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 } ''; }; |
