Michael Ströder
unread,May 11, 2019, 12:38:33 PM5/11/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
HI!
I'm testing my ansible roles with ansible 2.8rc3.
The roles work with ansible 2.7.10.
This cron task fails with 2.8rc3 using Python 2.7.16 (see details
attached at message end):
- name: "Remove obsolete CRON jobs from /etc/cron.d/aedir_tools"
cron:
name: "{{ item }}"
state: absent
cron_file: aedir_tools
with_items:
- aedirpwd_cron
- aedirpwd_expiry_check
What's wrong with that?
Ciao, Michael.
-------------------------------- snip --------------------------------
The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
File
"/tmp/ansible_cron_payload_HHWGrW/ansible_cron_payload.zip/ansible/module_utils/basic.py",
line 1529, in _check_required_by
check_required_by(spec, param)
File
"/tmp/ansible_cron_payload_HHWGrW/ansible_cron_payload.zip/ansible/module_utils/common/validation.py",
line 164, in check_required_by
raise TypeError(to_native(msg))
failed: [ae-dir-suse-p1.virtnet1.stroeder.local] (item=aedirpwd_cron) =>
{
"ansible_loop_var": "item",
"changed": false,
"invocation": {
"module_args": {
"backup": false,
"cron_file": "aedir_tools",
"day": "*",
"disabled": false,
"hour": "*",
"minute": "*",
"month": "*",
"name": "aedirpwd_cron",
"reboot": false,
"state": "absent",
"weekday": "*"
}
},
"item": "aedirpwd_cron",
"msg": "missing parameter(s) required by 'cron_file': user"
}