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 = { fields = {
'name': { 'type': 'str', 'required': True }, 'name': { 'type': 'str', 'required': True },
'device': { '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) module = AnsibleModule(argument_spec=fields)
changed = False changed = False

View file

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

View file

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