Re: [ansible-project] ansible output not shown

2022-06-21 Thread Brian Coca
I need to figure out how to use the argparser library to make those
more congruent.


-- 
--
Brian Coca

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7eUWDEyHRURqcKNPddgOwRTHrm4CO1na2FGhcRZ-RYcgQ%40mail.gmail.com.


Re: [ansible-project] ansible output not shown

2022-06-21 Thread Todd Lewis
Thanks, Brian.
You've touched my love-hate-relationship-with-ansible nerve. It's an 
anti-feature that

   ansible-config --help dump

produces output different from

   ansible-config dump --help

the latter being the only way to discover "--only-changed".
And whether `man ansible-config` works depends on pip vs. system packaging.
Still, good to know about "--only-changed".

On Tuesday, June 21, 2022 at 10:58:33 AM UTC-4 Brian Coca wrote:

> Note for @Todd Lewis 
> |ansible-config dump | grep -v default 
>
> no need for that, why you have --only-changed 
>
> ansible-config dump --only-changed 
>
>
>
> -- 
> -- 
> Brian Coca 
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9e5e3137-e3f2-4028-a233-082f510685aan%40googlegroups.com.


Re: [ansible-project] ansible output not shown

2022-06-21 Thread Brian Coca
@High Racoon

The message is a bit misleading, it is not matching a host so it tries
to match a group (since hosts: allows for host patterns which can
include both), but then it sees the '-' and gives you the message
about invalid groups.

Note for @Todd Lewis
|ansible-config dump | grep -v default

no need for that, why you have --only-changed

ansible-config dump --only-changed



-- 
--
Brian Coca

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7dXGnZr1B8vggHaR5znqzKpjfXxecpLSNK1GMXn4UaakA%40mail.gmail.com.


Re: [ansible-project] ansible output not shown

2022-06-20 Thread High Raccoon
DEFAULT_STDOUT_CALLBACK was the reason, I've set it up a while ago to 
suppress the excrutiating amount of output and then forgot about it. thank 
you very much for your help.

воскресенье, 19 июня 2022 г. в 21:35:11 UTC+5, uto...@gmail.com: 

> What's the output of
>
>ansible-config dump | grep -v default
>
> On Sunday, June 19, 2022 at 9:08:19 AM UTC-4 ra...@linuxia.de wrote:
>
>> On 19/06/2022 14:08, High Raccoon wrote: 
>> > also, the hostname is altered. 
>> > 
>>
>> Try 
>>
>> hosts: "test1-host:test2-host" 
>>
>> Regards 
>> Racke 
>>
>> > воскресенье, 19 июня 2022 г. в 17:07:49 UTC+5, High Raccoon: 
>> > 
>> > it's a host, not a group. 
>> > 
>> > воскресенье, 19 июня 2022 г. в 02:49:01 UTC+5, dnmv...@gmail.com: 
>> > 
>> > Group names can't include dashes ('-') 
>> > 
>> > 
>> > 
>> > On Sat, 18 Jun 2022 at 17:44, High Raccoon  wrote: 
>> > 
>> > an extremely simple playbook: 
>> > ``` 
>> > --- 
>> > - hosts: 
>> >- test-host 
>> >  tasks: 
>> >- name: AAA 
>> >   ansible.builtin.debug: 
>> >msg: AAA 
>> > ``` 
>> > 
>> > shows results like this: 
>> > ``` 
>> > [WARNING]: Invalid characters were found in group names but not 
>> replaced, use - to see details 
>> > 
>> > PLAY [test-host] 
>> **
>>  
>>
>> > 
>> > PLAY RECAP 
>> ***
>>  
>>
>> > test-host   : ok=2changed=0unreachable=0   
>>  failed=0skipped=0rescued=0ignored=0 
>> > ``` 
>> > 
>> > so the debug task is either ignored, or had its output suppressed. 
>> please, help me make sense of ansible's behavior and try to figure out 
>> which settings could have influenced it. 
>> > 
>> > -- 
>> > 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 ansible-proje...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/2577e03f-d182-479f-92e1-60dc96526789n%40googlegroups.com
>>  
>> <
>> https://groups.google.com/d/msgid/ansible-project/2577e03f-d182-479f-92e1-60dc96526789n%40googlegroups.com?utm_medium=email_source=footer>.
>>  
>>
>> > 
>> > -- 
>> > Sent from Gmail Mobile 
>> > 
>> > -- 
>> > 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 ansible-proje...@googlegroups.com > ansible-proje...@googlegroups.com>. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/4316813d-307a-4ab9-8740-cf3322a269afn%40googlegroups.com
>>  
>> <
>> https://groups.google.com/d/msgid/ansible-project/4316813d-307a-4ab9-8740-cf3322a269afn%40googlegroups.com?utm_medium=email_source=footer>.
>>  
>>
>>
>>
>> -- 
>> Automation expert - Ansible and friends 
>> Linux administrator & Debian maintainer 
>> Perl Dancer & conference hopper 
>>
>>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/85ba2638-bad4-444a-9444-686e7e3a1e47n%40googlegroups.com.


Re: [ansible-project] ansible output not shown

2022-06-19 Thread High Raccoon
$ ansible-config dump | grep -v default 

ANSIBLE_PIPELINING(/home/szelga/automation/ansible.cfg) = True 
DEFAULT_HOST_LIST(/home/szelga/automation/ansible.cfg) = 
['/home/szelga/automation/inventory_netbox.yml', 
'/home/szelga/automation/inventory_static.yml'
, '/home/szelga/automation/inventory_test.yml'] 
DEFAULT_REMOTE_USER(/home/szelga/automation/ansible.cfg) = root 
DEFAULT_STDOUT_CALLBACK(/home/szelga/automation/ansible.cfg) = actionable 
DEFAULT_VAULT_PASSWORD_FILE(/home/szelga/automation/ansible.cfg) = 
/home/szelga/automation/password.txt 
HOST_KEY_CHECKING(/home/szelga/automation/ansible.cfg) = False


воскресенье, 19 июня 2022 г. в 21:35:11 UTC+5, uto...@gmail.com: 

> What's the output of
>
>ansible-config dump | grep -v default
>
> On Sunday, June 19, 2022 at 9:08:19 AM UTC-4 ra...@linuxia.de wrote:
>
>> On 19/06/2022 14:08, High Raccoon wrote: 
>> > also, the hostname is altered. 
>> > 
>>
>> Try 
>>
>> hosts: "test1-host:test2-host" 
>>
>> Regards 
>> Racke 
>>
>> > воскресенье, 19 июня 2022 г. в 17:07:49 UTC+5, High Raccoon: 
>> > 
>> > it's a host, not a group. 
>> > 
>> > воскресенье, 19 июня 2022 г. в 02:49:01 UTC+5, dnmv...@gmail.com: 
>> > 
>> > Group names can't include dashes ('-') 
>> > 
>> > 
>> > 
>> > On Sat, 18 Jun 2022 at 17:44, High Raccoon  wrote: 
>> > 
>> > an extremely simple playbook: 
>> > ``` 
>> > --- 
>> > - hosts: 
>> >- test-host 
>> >  tasks: 
>> >- name: AAA 
>> >   ansible.builtin.debug: 
>> >msg: AAA 
>> > ``` 
>> > 
>> > shows results like this: 
>> > ``` 
>> > [WARNING]: Invalid characters were found in group names but not 
>> replaced, use - to see details 
>> > 
>> > PLAY [test-host] 
>> **
>>  
>>
>> > 
>> > PLAY RECAP 
>> ***
>>  
>>
>> > test-host   : ok=2changed=0unreachable=0   
>>  failed=0skipped=0rescued=0ignored=0 
>> > ``` 
>> > 
>> > so the debug task is either ignored, or had its output suppressed. 
>> please, help me make sense of ansible's behavior and try to figure out 
>> which settings could have influenced it. 
>> > 
>> > -- 
>> > 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 ansible-proje...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/2577e03f-d182-479f-92e1-60dc96526789n%40googlegroups.com
>>  
>> <
>> https://groups.google.com/d/msgid/ansible-project/2577e03f-d182-479f-92e1-60dc96526789n%40googlegroups.com?utm_medium=email_source=footer>.
>>  
>>
>> > 
>> > -- 
>> > Sent from Gmail Mobile 
>> > 
>> > -- 
>> > 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 ansible-proje...@googlegroups.com > ansible-proje...@googlegroups.com>. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/4316813d-307a-4ab9-8740-cf3322a269afn%40googlegroups.com
>>  
>> <
>> https://groups.google.com/d/msgid/ansible-project/4316813d-307a-4ab9-8740-cf3322a269afn%40googlegroups.com?utm_medium=email_source=footer>.
>>  
>>
>>
>>
>> -- 
>> Automation expert - Ansible and friends 
>> Linux administrator & Debian maintainer 
>> Perl Dancer & conference hopper 
>>
>>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/69c621fd-cb65-492f-9dd4-386cb5b54e3en%40googlegroups.com.


Re: [ansible-project] ansible output not shown

2022-06-19 Thread Stefan Hornburg (Racke)

On 19/06/2022 14:08, High Raccoon wrote:

also, the hostname is altered.



Try

hosts: "test1-host:test2-host"

Regards
Racke


воскресенье, 19 июня 2022 г. в 17:07:49 UTC+5, High Raccoon:

it's a host, not a group.

воскресенье, 19 июня 2022 г. в 02:49:01 UTC+5, dnmv...@gmail.com:

Group names can't include dashes ('-')



On Sat, 18 Jun 2022 at 17:44, High Raccoon  wrote:

an extremely simple playbook:
```
---
- hosts:
    - test-host
  tasks:
    - name: AAA
       ansible.builtin.debug:
    msg: AAA
```

shows results like this:
```
[WARNING]: Invalid characters were found in group names but not 
replaced, use - to see details

PLAY [test-host] 
**

PLAY RECAP 
***
test-host                   : ok=2    changed=0    unreachable=0    
failed=0    skipped=0    rescued=0    ignored=0
```

so the debug task is either ignored, or had its output suppressed. 
please, help me make sense of ansible's behavior and try to figure out which 
settings could have influenced it.

-- 
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2577e03f-d182-479f-92e1-60dc96526789n%40googlegroups.com
 
.

-- 
Sent from Gmail Mobile


--
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 
ansible-project+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4316813d-307a-4ab9-8740-cf3322a269afn%40googlegroups.com
 
.



--
Automation expert - Ansible and friends
Linux administrator & Debian maintainer
Perl Dancer & conference hopper

--
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/89b1bdd1-f40e-b104-113a-2318fda0ec8f%40linuxia.de.


OpenPGP_signature
Description: OpenPGP digital signature


Re: [ansible-project] ansible output not shown

2022-06-19 Thread High Raccoon
also, the hostname is altered.

воскресенье, 19 июня 2022 г. в 17:07:49 UTC+5, High Raccoon: 

> it's a host, not a group.
>
> воскресенье, 19 июня 2022 г. в 02:49:01 UTC+5, dnmv...@gmail.com: 
>
>> Group names can't include dashes ('-')
>>
>>
>>
>> On Sat, 18 Jun 2022 at 17:44, High Raccoon  wrote:
>>
>>> an extremely simple playbook:
>>> ```
>>> --- 
>>> - hosts: 
>>>- test-host 
>>>  tasks: 
>>>- name: AAA 
>>>   ansible.builtin.debug:
>>>msg: AAA
>>> ```
>>>
>>> shows results like this:
>>> ```
>>> [WARNING]: Invalid characters were found in group names but not 
>>> replaced, use - to see details
>>>
>>> PLAY [test-host] 
>>> **
>>>
>>> PLAY RECAP 
>>> ***
>>> test-host   : ok=2changed=0unreachable=0   
>>>  failed=0skipped=0rescued=0ignored=0   
>>> ```
>>>
>>> so the debug task is either ignored, or had its output suppressed. 
>>> please, help me make sense of ansible's behavior and try to figure out 
>>> which settings could have influenced it.
>>>
>>> -- 
>>> 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 ansible-proje...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/ansible-project/2577e03f-d182-479f-92e1-60dc96526789n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> Sent from Gmail Mobile
>>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4316813d-307a-4ab9-8740-cf3322a269afn%40googlegroups.com.


Re: [ansible-project] ansible output not shown

2022-06-19 Thread High Raccoon
it's a host, not a group.

воскресенье, 19 июня 2022 г. в 02:49:01 UTC+5, dnmv...@gmail.com: 

> Group names can't include dashes ('-')
>
>
>
> On Sat, 18 Jun 2022 at 17:44, High Raccoon  wrote:
>
>> an extremely simple playbook:
>> ```
>> --- 
>> - hosts: 
>>- test-host 
>>  tasks: 
>>- name: AAA 
>>   ansible.builtin.debug:
>>msg: AAA
>> ```
>>
>> shows results like this:
>> ```
>> [WARNING]: Invalid characters were found in group names but not replaced, 
>> use - to see details
>>
>> PLAY [test-host] 
>> **
>>
>> PLAY RECAP 
>> ***
>> test-host   : ok=2changed=0unreachable=0   
>>  failed=0skipped=0rescued=0ignored=0   
>> ```
>>
>> so the debug task is either ignored, or had its output suppressed. 
>> please, help me make sense of ansible's behavior and try to figure out 
>> which settings could have influenced it.
>>
>> -- 
>> 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 ansible-proje...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/2577e03f-d182-479f-92e1-60dc96526789n%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
> Sent from Gmail Mobile
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7698910f-1796-4e32-bdd2-f65efb433143n%40googlegroups.com.


Re: [ansible-project] ansible output not shown

2022-06-18 Thread Dick Visser
Group names can't include dashes ('-')



On Sat, 18 Jun 2022 at 17:44, High Raccoon  wrote:

> an extremely simple playbook:
> ```
> ---
> - hosts:
>- test-host
>  tasks:
>- name: AAA
>   ansible.builtin.debug:
>msg: AAA
> ```
>
> shows results like this:
> ```
> [WARNING]: Invalid characters were found in group names but not replaced,
> use - to see details
>
> PLAY [test-host]
> **
>
> PLAY RECAP
> ***
> test-host   : ok=2changed=0unreachable=0
>  failed=0skipped=0rescued=0ignored=0
> ```
>
> so the debug task is either ignored, or had its output suppressed. please,
> help me make sense of ansible's behavior and try to figure out which
> settings could have influenced it.
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/2577e03f-d182-479f-92e1-60dc96526789n%40googlegroups.com
> 
> .
>
-- 
Sent from Gmail Mobile

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLZqS1xqm9pHW0DX4nbLL2sZ6vfFNcpPPn7QNOrTbMQSGQ%40mail.gmail.com.


[ansible-project] ansible output not shown

2022-06-18 Thread High Raccoon
an extremely simple playbook:
```
--- 
- hosts: 
   - test-host 
 tasks: 
   - name: AAA 
  ansible.builtin.debug:
   msg: AAA
```

shows results like this:
```
[WARNING]: Invalid characters were found in group names but not replaced, 
use - to see details

PLAY [test-host] 
**

PLAY RECAP 
***
test-host   : ok=2changed=0unreachable=0   
 failed=0skipped=0rescued=0ignored=0   
```

so the debug task is either ignored, or had its output suppressed. please, 
help me make sense of ansible's behavior and try to figure out which 
settings could have influenced it.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2577e03f-d182-479f-92e1-60dc96526789n%40googlegroups.com.