On 11.05.2019 18:38, Michael Ströder wrote:
> 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?
> 

<snip />

>      "msg": "missing parameter(s) required by 'cron_file': user"
> }
> 

As the message say you are missing the user parameter, per documentation this 
is required.

That said, the user parameter is irrelevant when state is absent so I would 
call this a bug.


-- 
Kai Stian Olstad

-- 
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/41930af4-07d6-289d-5eee-93b35cc8fe72%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to