fix(system_check): move no_log from block to individual API tasks
This commit is contained in:
@@ -42,7 +42,6 @@
|
|||||||
api_host: "{{ hypervisor_cfg.url }}"
|
api_host: "{{ hypervisor_cfg.url }}"
|
||||||
api_user: "{{ hypervisor_cfg.username }}"
|
api_user: "{{ hypervisor_cfg.username }}"
|
||||||
api_password: "{{ hypervisor_cfg.password }}"
|
api_password: "{{ hypervisor_cfg.password }}"
|
||||||
no_log: true
|
|
||||||
block:
|
block:
|
||||||
- name: Query Proxmox for existing VM
|
- name: Query Proxmox for existing VM
|
||||||
community.proxmox.proxmox_vm_info:
|
community.proxmox.proxmox_vm_info:
|
||||||
@@ -52,6 +51,7 @@
|
|||||||
type: qemu
|
type: qemu
|
||||||
register: system_check_proxmox_check_result
|
register: system_check_proxmox_check_result
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
no_log: true
|
||||||
|
|
||||||
- name: Abort if VM already exists on Proxmox
|
- name: Abort if VM already exists on Proxmox
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
@@ -72,7 +72,6 @@
|
|||||||
username: "{{ hypervisor_cfg.username }}"
|
username: "{{ hypervisor_cfg.username }}"
|
||||||
password: "{{ hypervisor_cfg.password }}"
|
password: "{{ hypervisor_cfg.password }}"
|
||||||
validate_certs: "{{ hypervisor_cfg.certs | bool }}"
|
validate_certs: "{{ hypervisor_cfg.certs | bool }}"
|
||||||
no_log: true
|
|
||||||
block:
|
block:
|
||||||
- name: Query vCenter for existing VM
|
- name: Query vCenter for existing VM
|
||||||
community.vmware.vmware_guest_info:
|
community.vmware.vmware_guest_info:
|
||||||
@@ -82,6 +81,7 @@
|
|||||||
register: system_check_vmware_check_result
|
register: system_check_vmware_check_result
|
||||||
failed_when: false
|
failed_when: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
no_log: true
|
||||||
|
|
||||||
- name: Fail if vCenter lookup failed unexpectedly
|
- name: Fail if vCenter lookup failed unexpectedly
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
|
|||||||
Reference in New Issue
Block a user