ansible-role-luks/test/integration/default/default.yml

22 lines
413 B
YAML
Raw Normal View History

2019-03-16 22:51:50 +00:00
---
- hosts: localhost
connection: local
vars:
luks_devices:
- name: data_encrypted
device: /tmp/test.img
fstype: ext4
mount_point: /mnt/data_decrypted
key: secret
pre_tasks:
- stat:
path: /tmp/test.img
register: st
- command: dd if=/dev/zero of=/tmp/test.img bs=1M count=100
when: not st.stat.exists
roles:
- ansible-role-luks