diff options
Diffstat (limited to 'roles/cryptdisk/tasks')
-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 |