Testing
--- - name: Nutanix Cluster Health Check and Email Reports hosts: localhost connection: local gather_facts: false vars: script_dir: "/path/nutanix_health_check" script_path: "/path/nutanix_health_check/nutanix.py" password_script: "/path/get_password.sh" username: "svc_aif_win_np" smtp_host: "your.smtp.server" smtp_port: 25 mail_from: "automation@company.com" mail_to: "your-team@company.com" tasks: # Step 1: Fetch password from API - name: Fetch password from API ansible.builtin.shell: | /bin/bash "{{ password_script }}" register: password_response no_log: true changed_when: false - name: Validate API password ansible.builtin.assert: that: ...