Thanks a lot, apt: autoremove is now available, but how do i use it?

Am Donnerstag, 10. März 2016 15:49:46 UTC+1 schrieb Brian Coca:
>
> The apt module has been updated to allow this, it will be available in a 
> 2.1 release
>
> On Thu, Mar 10, 2016 at 6:33 AM, 'Benjamin Loehner' via Ansible Project <
> [email protected] <javascript:>> wrote:
>
>> Hi,
>>
>> when you use "command: apt-get autoremove -y" ansible bugs you with 
>> "[WARNING]: Consider using apt-get module rather than running apt-get".
>>
>> Is it possible to use something like "apt: package=XYZ state=installed"?
>>
>> This is the code i want to replace:
>>
>> - name: Remove unneeded packages.
>>   become:  yes
>>   command: apt-get autoremove -y
>>   register: autoremove_result
>>   changed_when: "'0 upgraded' not in autoremove_result.stdout"
>>   tags:
>>     - apt
>>     - autoremove
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/089a6f40-5aab-49fe-9dd1-13fbf32802c9%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/089a6f40-5aab-49fe-9dd1-13fbf32802c9%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> ----------
> Brian Coca
>

-- 
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/275171ce-5fdb-4205-a19b-aeb8a497d924%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to