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"
}

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/21b82225-703d-4a8a-cd9c-a1d427b70c9d%40stroeder.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to