To get info from the passwd/group files, use the getent module:
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/getent_module.html
On Mar 18, 2022 at 11:27:29, Tony Wong wrote:
> any idea how I would get this info from 20 esx servers?
>
> do I do a ad-hoc command or is there
try
*- hosts: all roles:- role: debian_stock_config when:
ansible_facts['os_family']|lower == 'debian'*
On Thu, Aug 26, 2021 at 2:52 PM Luiz Guilherme Nunes Fernandes <
narutospi...@gmail.com> wrote:
> Hi, I have problems with global configuration playbook.
>
> what is the correct se
I find
https://docs.ansible.com/ansible/2.8/reference_appendices/special_variables.html
to be a gold mine for these kinds of things. Just match it with whatever
version of Ansible you're supporting.
On Mon, Jul 19, 2021 at 3:56 PM John Petro wrote:
> oh, that is cool. I didn't know about that o
You could inspect ansible_run_tags and see if those three tags are not in
it.
On Mon, Jul 19, 2021 at 3:44 PM John Petro wrote:
> I have a bit of a problem, and was wondering if anyone has ever done
> something like this. I have a playbook I am working on, where it updates
> firewalld rules for