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
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,
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.
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
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
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"
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,