refactor: install ansible with Python venv (#863)

This commit is contained in:
Devin Buhl authored and GitHub committed 2023-07-19 11:03:59 -04:00
1 parent e4d1fa15d6
commit 571a7454c0
15 files changed
+85 -153

No files matched your search

+4 -4
View File
@@ -1,18 +1,18 @@
---
- name: Query age key file
ansible.builtin.stat:
path: ~/.config/sops/age/keys.txt
path: "{{ repository_path }}/age.key"
register: result
- name: Check if age key file exists
ansible.builtin.assert:
that: result.stat.exists
success_msg: Age file ~/.config/sops/age/keys.txt exists
fail_msg: Age file ~/.config/sops/age/keys.txt does not exist
success_msg: Age file {{ repository_path }}/age.key exists
fail_msg: Age file {{ repository_path }}/age.key does not exist
- name: Query age key file contents
ansible.builtin.set_fact:
age_contents: "{{ lookup('file', '~/.config/sops/age/keys.txt') }}"
age_contents: "{{ lookup('file', repository_path + '/age.key') }}"
- name: Check if age public keys match
ansible.builtin.assert: