chore: remove no_log on task file

This commit is contained in:
Adrien Waksberg 2021-09-13 00:13:15 +02:00
parent a5bcd2aa65
commit d70542cf69
3 changed files with 10 additions and 6 deletions

View file

@ -35,7 +35,7 @@ def main():
fields = {
'name': { 'type': 'str', 'required': True },
'device': { 'type': 'str', 'required': True },
'key': { 'type': 'str', 'required': True }
'key': { 'type': 'str', 'required': True, 'no_log': True }
}
module = AnsibleModule(argument_spec=fields)
changed = False

View file

@ -32,7 +32,7 @@ def main():
'device': { 'type': 'str', 'required': True },
'cipher': { 'type': 'str', 'default': 'aes-xts-plain' },
'size': { 'type': 'int', 'default': 256 },
'key': { 'type': 'str', 'required': True }
'key': { 'type': 'str', 'required': True, 'no_log': True }
}
module = AnsibleModule(argument_spec=fields)
changed = False

View file

@ -17,7 +17,8 @@
size: '{{ item.size|default(256) }}'
key: '{{ item.key }}'
loop: '{{ luks_devices }}'
no_log: true
loop_control:
label: '{{ item.name }} - {{ item.device }}'
tags: luks
- name: decrypt luks device
@ -26,7 +27,8 @@
name: '{{ item.name }}'
key: '{{ item.key }}'
loop: '{{ luks_devices }}'
no_log: true
loop_control:
label: '{{ item.name }} - {{ item.device }}'
tags: luks
- name: format partition
@ -34,7 +36,8 @@
fstype: '{{ item.fstype }}'
dev: '/dev/mapper/{{ item.name }}'
loop: '{{ luks_devices }}'
no_log: true
loop_control:
label: '{{ item.name }} - {{ item.device }}'
tags: luks
- name: mount partition
@ -45,5 +48,6 @@
opts: noauto
state: mounted
loop: '{{ luks_devices }}'
no_log: true
loop_control:
label: '{{ item.name }} - {{ item.device }}'
tags: luks