You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module exists with error Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) while async and poll used.
While using synchronous execution, there's no problem. But you HAVE to wait until expire run's out.
P.S. #494 is probably the same, but the author decided not to include information required for filing an issue and stopped to answer on information requests. So I filed a new one. Let me know if this was inappropriate.
architecture: 64-bitarchitecture2: x86_64distribution: Microsoft Windows 10 Prodistribution_major_version: '10'distribution_version: 10.0.19045.0os_family: Windowsos_installation_type: Clientos_name: Microsoft Windows 10 Proos_product_type: workstationwindows_domain: WORKGROUPwindows_domain_member: falsewindows_domain_role: Stand-alone workstation
STEPS TO REPRODUCE
---
- name: Install Thin Clienthosts: SomeMachineserial: '100%'gather_facts: falsevars:
version: '8.3.24.1764'tasks:
- name: Notify user failsignore_errors: truecommunity.windows.win_toast:
expire: 30title: The installation of Thin client version {{ version }} is completemsg: Thin client installationasync: 60poll: 5
- name: Notify user works, but need to wait until expire runs outcommunity.windows.win_toast:
expire: 30title: The installation of Thin client version {{ version }} is completemsg: Thin client installation
Only second one works. I found out, that title and msg does not work as intended, because they're swapped. But this is for another issue
Result (from second task):
EXPECTED RESULTS
A toast notification is shown to the user, while using async execution or fire and forget scenario
ACTUAL RESULTS
Error.
$ ansible-playbook -v playbooks/toast_test.yaml
Using /home/user/git/ansible-pg/ansible.cfg as config file
PLAY [Install Thin Client] ********************************************************************************************************************************************
TASK [Notify user fails] **********************************************************************************************************************************************
ASYNC FAILED on SomeMachine: jid=j558608974231.11724
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: at <ScriptBlock>, <No file>: line 71
fatal: [SomeMachine]: FAILED! => changed=false
ansible_async_watchdog_pid: 13760
ansible_job_id: j558608974231.11724
expire_at: 05.12.2024 19:36:25
expire_at_utc: 5 декабря 2024 г. 16:36:25
finished: 1
msg: 'Failed to create toast notifier: Exception calling "Show" with "1" argument(s): "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"'
results_file: C:\Users\Администратор\.ansible_async\j558608974231.11724
started: 1
stderr: ''
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
toast_sent: false
...ignoring
TASK [Notify user works, but need to wait until expire runs out] ******************************************************************************************************
ok: [SomeMachine] => changed=false
expire_at: 12/5/2024 7:36:31 PM
expire_at_utc: Thursday, December 5, 2024 4:36:31 PM
sent_localtime: Thursday, December 5, 2024 7:36:31 PM
time_taken: 30.4626792
toast_sent: true
PLAY RECAP ************************************************************************************************************************************************************
SomeMachine : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1
The text was updated successfully, but these errors were encountered:
I found out only now that expire=0 and synchronous execution can be used as a workaround if the actual "expiration time" is not needed. It will fire the toast and return. Documentation is not clear about 0 being possible and valid option.
SUMMARY
The module exists with error
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
while async and poll used.While using synchronous execution, there's no problem. But you HAVE to wait until expire run's out.
P.S. #494 is probably the same, but the author decided not to include information required for filing an issue and stopped to answer on information requests. So I filed a new one. Let me know if this was inappropriate.
ISSUE TYPE
COMPONENT NAME
win_toast
ANSIBLE VERSION
COLLECTION VERSION
Having community.general in comment example is somewhat confusing.
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Only second one works. I found out, that title and msg does not work as intended, because they're swapped. But this is for another issue
Result (from second task):
EXPECTED RESULTS
A toast notification is shown to the user, while using async execution or fire and forget scenario
ACTUAL RESULTS
Error.
The text was updated successfully, but these errors were encountered: