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
# if using a version older than ansible-core 2.12 you should omit the '-t all'
$ ansible-config dump --only-changed -t allCONFIG_FILE() = /home/.../.ansible.cfgDEFAULT_HOST_LIST(/home/.../.ansible.cfg) = ['/data/ansible_windows/.../inventories']DEFAULT_VAULT_PASSWORD_FILE(/home/.../.ansible.cfg) = /home/.../.ansible/vaultEDITOR(env: EDITOR) = nano
OS / Environment
Red Hat Enterprise Linux 8.10
Steps to Reproduce
Create a playbook using password and run it
---
- name: Add a scheduled task to remove old temporary files on converter servers
gather_facts: no
hosts: all
tasks:
- name: Create task
community.windows.win_scheduled_task:
name: Clean MSO Content
description: Löscht Files aus dem Ordnern C:\Users\converteruser\AppData\Local\Microsoft\Windows\INetCache die älter als 30 Tage sind
date: "2025-03-25T11:42:00"
author: me
actions:
- path: C:\Windows\System32\cscript.exe
arguments: '"C:\Program Files\CleanLogs\CleanLogs.vbs" "C:\Users\converteruser\AppData\Local\Microsoft\Windows\INetCache" 30'
triggers:
- type: daily
start_boundary: '2025-03-25T01:00:00'
username: user
password: password
run_level: limited
logon_type: password
compatibility: 4
state: present
Expected Results
Expected result would be a new task running under the given user
Actual Results
fatal: [host.example.com]: FAILED! => { "changed": true, "msg": "failed to modify scheduled task: The directory property cannot be found in the cache.\r\n"}
The task is created, but only with the correct action. Everything else is missing (author, date, username, password, triggers, ...).
The text was updated successfully, but these errors were encountered:
Summary
If using
password
orlogon_type: password
execution of the playbook always results in:Issue Type
Bug Report
Component Name
win_scheduled_task
Ansible Version
Configuration
OS / Environment
Red Hat Enterprise Linux 8.10
Steps to Reproduce
Create a playbook using
password
and run itExpected Results
Expected result would be a new task running under the given user
Actual Results
The task is created, but only with the correct action. Everything else is missing (author, date, username, password, triggers, ...).
The text was updated successfully, but these errors were encountered: