On 11.05.2019 19:15, Kai Stian Olstad wrote:
> 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.
Here is the culprit PR
https://github.com/ansible/ansible/pull/28662
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/aed1cb4a-06fc-81b6-5f29-d4cf06a84071%40olstad.com.
For more options, visit https://groups.google.com/d/optout.