You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Hi All,
Request your help on how to sort a dict2item "{{ ansible_facts.packages|dict2items }}"
Dick Visser
unread,
Jun 22, 2021, 2:45:12 PM6/22/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Request an example for such a data structure
On Tue, 22 Jun 2021 at 19:25, akash...@gmail.com <akash...@gmail.com> wrote:
>
> Hi All,
>
> Request your help on how to sort a dict2item "{{ ansible_facts.packages|dict2items }}"
>
--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT
akash...@gmail.com
unread,
Jun 23, 2021, 1:18:20 AM6/23/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
As you know that the module "ansible_facts.packages" collects all the rpm packages installed on a host , so we need to sort those packages in alphabetical order eg:
aaa_base,
SuSEfirewall2 ..
"SuSEfirewall2": [
{
"arch": "noarch",
"epoch": null,
"name": "SuSEfirewall2",
"release": "1.33",
"source": "rpm",
"version": "3.6.378"
}
],
"aaa_base": [
{
"arch": "x86_64",
"epoch": null,
"name": "aaa_base",
"release": "3.42.1",
"source": "rpm",
"version": "84.87+git20180409.04c9dae"
}
],
akash...@gmail.com
unread,
Jun 23, 2021, 1:20:00 AM6/23/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
- name: Gather the package facts
package_facts:
manager: auto
Dick Visser
unread,
Jun 23, 2021, 3:15:12 AM6/23/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message