On 26/08/2021 21:26, Doug Hunley wrote:
try
*- hosts: all
  roles:
    - role: debian_stock_config
      when: ansible_facts['os_family']|lower == 'debian'*

That condition is overcomplicated.

      when: ansible_os_family == 'Debian'

should do the trick.

Regards

          Racke




On Thu, Aug 26, 2021 at 2:52 PM Luiz Guilherme Nunes Fernandes <[email protected] 
<mailto:[email protected]>> wrote:

    Hi, I have problems with global configuration playbook.

    what is the correct setting?

    *- hosts: all
      roles:
        - role: debian_stock_config
    when: ansible_facts['os_family']|lower == 'debian'*

    /be elsewhere in the file depending on the exact syntax problem.

    The offending line appears to be:

      roles:
        - role: debian_stock_config
          ^ here
    /

    Any suggestions?

-- <<<<<<<<<<<<<<<<<<<------------------------------------------------------------------->>>>>>>>>>>>>>>>>>>
                                      Att.
          ♪ ♫  Luiz Guilherme Nunes Fernandes  ♫ ♪
    
<<<<<<<<<<<<<<<<<<<<------------------------------------------------------------------->>>>>>>>>>>>>>>>>>>
-- You received this message because you are subscribed to the Google Groups "Ansible Project" group.
    To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected] 
<mailto:[email protected]>.
    To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD%2BmhWLwvX3OSdfXt3vmdn%3D3D%3DaThzzfa9hHtD5%2BiLO%3DbZXcyQ%40mail.gmail.com
 
<https://groups.google.com/d/msgid/ansible-project/CAD%2BmhWLwvX3OSdfXt3vmdn%3D3D%3DaThzzfa9hHtD5%2BiLO%3DbZXcyQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 
[email protected] 
<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAMiM3L1OTeiMg4sxgGe7F7QPgMuGXHn2%2BuhADXh5AHYf1xYWmg%40mail.gmail.com
 
<https://groups.google.com/d/msgid/ansible-project/CAMiM3L1OTeiMg4sxgGe7F7QPgMuGXHn2%2BuhADXh5AHYf1xYWmg%40mail.gmail.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration.

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f5aadd65-3033-b96c-95fa-0da70ebf35dd%40linuxia.de.

Reply via email to