[ansible-project] Release Announcement: Ansible Community package 8.2.0

2023-07-18 Thread samc...@redhat.com
Hello everyone, We're happy to announce the release of the Ansible 8.2.0 package! Ansible 8.2.0 includes latest version of ansible-core 2.15.2 and includes a curated set of Ansible collections that provides a vast number of modules and plugins. How to get it - This release is

[ansible-project] Re: Huawei ne error by playbook run

2023-07-18 Thread Todd Lewis
Did you ever get resolution on this? "ansible.module_utils.common" is not the FQCN for an Ansible module. Rather, it's a python class path for modules themselves to import components needed to implement expected module behavior. Unless you are writing your own modules in python,

Re: [ansible-project] Output from "top" in shell module does not display the entire "COMMAND" column string

2023-07-18 Thread Luiz Gustavo
Thanks Todd, it worked perfectly. Taking advantage of the subject, do you know any similar command in AIX (would it be topas?). I can't run it in the background. Em seg., 17 de jul. de 2023 às 23:53, Todd Lewis escreveu: > Output width. Your output is being truncated at the default 80 columns.

Re: [ansible-project] Please help me understand nested loops

2023-07-18 Thread Brian Coca
The way 'with_' works is more or less the same a a loop with a lookup in it's item list with_nested ... == loop: '{{ lookup("nested", ... )}}' Most find the `loop` syntax a bit clearer, it is less 'magical', but the with_ syntax is more convenient. -- -- Brian Coca -- You received

Re: [ansible-project] Ansible - variable to select artifact

2023-07-18 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
Silly me .. I should re-read my own code before pressing 'send'! - name: validate filename lookup value assert: that: - my_var in file_table.keys() fail_msg: "File lookup key '{{ my_var }}' is not valid" success_msg: "File lookup key '{{ my_var }}' is valid" - name: do my

Re: [ansible-project] Ansible - variable to select artifact

2023-07-18 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
If you didn't want a default value and instead wanted to gracefully handle an invalid value you could do something like this: - name: validate filename lookup value assert: that: - my_var in file_table.keys() fail_msg: "File lookup key '{{ my_var }}' is not valid"

Re: [ansible-project] Ansible - variable to select artifact

2023-07-18 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
Todd's dictionary lookup is elegant and flexible. I'd go with that model. It supports any number of choices and gracefully gives a default value. Walter -- Walter Rowe, Division Chief Infrastructure Services, OISM Mobile: 202.355.4123 On Jul 17, 2023, at 10:29 PM, Todd Lewis wrote: Hello,