chore: use FQCN module name

This commit is contained in:
Adrien Waksberg 2021-09-13 00:05:09 +02:00
parent a209d3f74c
commit a5bcd2aa65
2 changed files with 5 additions and 6 deletions

View file

@ -12,6 +12,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
### Changed ### Changed
test: replace kitchen to molecule test: replace kitchen to molecule
chore: use FQCN module name
### Fixed ### Fixed

View file

@ -1,9 +1,7 @@
--- ---
- name: install packages - name: install packages
package: ansible.builtin.package:
name: '{{ packages }}' name:
vars:
packages:
- cryptsetup - cryptsetup
- util-linux - util-linux
register: result register: result
@ -32,7 +30,7 @@
tags: luks tags: luks
- name: format partition - name: format partition
filesystem: ansible.builtin.filesystem:
fstype: '{{ item.fstype }}' fstype: '{{ item.fstype }}'
dev: '/dev/mapper/{{ item.name }}' dev: '/dev/mapper/{{ item.name }}'
loop: '{{ luks_devices }}' loop: '{{ luks_devices }}'
@ -40,7 +38,7 @@
tags: luks tags: luks
- name: mount partition - name: mount partition
mount: ansible.builtin.mount:
src: '/dev/mapper/{{ item.name }}' src: '/dev/mapper/{{ item.name }}'
path: '{{ item.mount_point }}' path: '{{ item.mount_point }}'
fstype: '{{ item.fstype }}' fstype: '{{ item.fstype }}'