feat: add ansible lint, update taskfiles, and makejinja to not strip trailing newlines (#1172)

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl authored and GitHub committed 2024-01-16 14:23:08 -05:00
1 parent b41ccc8145
commit 528508e834
13 files changed
+160 -127

No files matched your search

+5 -5
View File
@@ -6,9 +6,9 @@ tasks:
age-keygen:
desc: Initialize Age Key for Sops
cmd: age-keygen --output {{.ROOT_DIR}}/age.key
cmd: age-keygen --output {{.SOPS_AGE_FILE}}
status:
- test -f "{{.ROOT_DIR}}/age.key"
- test -f "{{.SOPS_AGE_FILE}}"
encrypt:
desc: Encrypt a secret
@@ -19,8 +19,8 @@ tasks:
vars:
claim: '{{ or .file (fail "Argument (file) is required") }}'
preconditions:
- { msg: "Sops config not found", sh: "test -f {{.ROOT_DIR}}/.sops.yaml" }
- { msg: "Age key not found", sh: "test -f {{.ROOT_DIR}}/age.key" }
- sh: test -f {{.SOPS_CONFIG_FILE}}
- sh: test -f {{.SOPS_AGE_FILE}}
encrypt:all:
desc: Encrypt all Kubernetes SOPS secrets
@@ -28,7 +28,7 @@ tasks:
- for: { var: file }
task: encrypt
vars:
file: '{{.ITEM}}'
file: "{{.ITEM}}"
vars:
file:
sh: find {{.KUBERNETES_DIR}} -type f -name "*.sops.*"