You can simply plagiarize the Ansible docs for yum to upgrade
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/yum_module.html

and apt  to upgrade
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/apt_module.html

however this is all dependent on your requirements, I use a precheck, 
upgrade, changelog collection of playbooks with host logic for the Linux 
hosts I currently maintain, depends on your estate.

On Thursday, September 24, 2020 at 6:57:38 PM UTC+1 ida...@gmail.com wrote:

> I suggest taking a look at the service module
>
> https://docs.ansible.com/ansible/latest/collections/ansible/builtin/service_module.html
> You can use this module to update both YUM and APT packages.
>
> Some packages have different names, so be sure to take that into account.
> You can see an example here:
> https://youtu.be/CYghlf-6Opc?t=929
>
> On Thursday, September 24, 2020 at 8:39:16 PM UTC+3 tdub...@gmail.com 
> wrote:
>
>> how can i update both ubuntu and centos boxes all in one playbook?
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a858fe33-c3f2-4f44-8951-2eeb94fdd88fn%40googlegroups.com.

Reply via email to