Re: [ansible-project] need to get info for /etc/passwd /etc/group

2022-03-18 Thread Doug Hunley
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

Re: [ansible-project] Doubt

2021-08-26 Thread Doug Hunley
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

Re: [ansible-project] question about tags

2021-07-19 Thread Doug Hunley
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

Re: [ansible-project] question about tags

2021-07-19 Thread Doug Hunley
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