diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-04-04 00:10:55 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-04-04 00:10:55 +0200 |
commit | 7c296e7021ee3371bc7fc87655487256774fc855 (patch) | |
tree | eacd6566daa3d253d3942cada9a256b2f26bd138 /roles/cryptdisk/tasks/main.yml | |
parent | root vs alias for nginx static file vhost (diff) |
move cryptdisk role to new storage subdir
Diffstat (limited to 'roles/cryptdisk/tasks/main.yml')
-rw-r--r-- | roles/cryptdisk/tasks/main.yml | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/roles/cryptdisk/tasks/main.yml b/roles/cryptdisk/tasks/main.yml deleted file mode 100644 index c0422bb3..00000000 --- a/roles/cryptdisk/tasks/main.yml +++ /dev/null @@ -1,45 +0,0 @@ ---- -- name: install cryptsetup packages - apt: - name: - - cryptsetup-bin - state: present - -- name: Create temporary build directory - tempfile: - state: directory - register: keyfile_dir - changed_when: False - check_mode: False - -- name: create cryptdisk volumes - block: - - - name: write passphrases into temporary keyfiles - loop: "{{ cryptdisk_volumes | dict2items }}" - loop_control: - label: "{{ item.key }}" - copy: - dest: "{{ keyfile_dir.path }}/{{ item.key }}" - content: "{{ item.value.passphrase }}" - mode: 0600 - changed_when: False - check_mode: False - - - name: create/open luks volumes - loop: "{{ cryptdisk_volumes | dict2items }}" - loop_control: - label: "{{ item.key }} ({{ item.value.device }})" - luks_device: - name: "{{ item.key }}" - device: "{{ item.value.device }}" - keyfile: "{{ keyfile_dir.path }}/{{ item.key }}" - state: opened - - always: - - name: remove base-directory for keyfiles - file: - path: "{{ keyfile_dir.path }}" - state: absent - changed_when: False - check_mode: False |