fix: add no_log to credential-handling pre_tasks and post_tasks in main.yml

This commit is contained in:
2026-02-21 00:38:32 +01:00
parent d1a5217e88
commit 074831833f

View File

@@ -26,6 +26,7 @@
confirm: true confirm: true
pre_tasks: pre_tasks:
- name: Apply prompted authentication values to system input - name: Apply prompted authentication values to system input
no_log: true
vars: vars:
system_input: "{{ system | default({}) }}" system_input: "{{ system | default({}) }}"
system_users_input: "{{ system_input.users | default([]) }}" system_users_input: "{{ system_input.users | default([]) }}"
@@ -147,6 +148,7 @@
- name: Set final SSH credentials for post-reboot tasks - name: Set final SSH credentials for post-reboot tasks
when: when:
- post_reboot_can_connect | bool - post_reboot_can_connect | bool
no_log: true
ansible.builtin.set_fact: ansible.builtin.set_fact:
ansible_user: "{{ system_cfg.users[0].name }}" ansible_user: "{{ system_cfg.users[0].name }}"
ansible_password: "{{ system_cfg.users[0].password }}" ansible_password: "{{ system_cfg.users[0].password }}"