Added gocryptfs password to a temporary file for use in later task

This commit is contained in:
Alex Tavarez
2025-07-21 17:24:16 -04:00
parent 2e2bb26378
commit 1c5560d035

View File

@@ -15,6 +15,11 @@
prefix: gcfs_passfile prefix: gcfs_passfile
state: file state: file
register: tempfile_created register: tempfile_created
- name: Put password in temporary file
lineinfile:
path: "{{ tempfile_created.path }}"
line: "{{ gcfs_password }}"
state: present
- name: Create directory for storing gocryptfs decryption configuration files - name: Create directory for storing gocryptfs decryption configuration files
file: file:
path: "{{ homedir }}/.fskeys/ciphers" path: "{{ homedir }}/.fskeys/ciphers"