Here is my cfg file:

ansible]# cat ansible.cfg
[defaults]
# Use local hosts file
inventory = /etc/ansible/hosts

# Disable SSH key host checking (RSA fingerprints)
host_key_checking = False

# Do not create .retry files on job failures
retry_files_enabled = False

# Do not gather facts
gathering = explicit

#Python Interpreter for Ansible 2.8 onwards
interpreter_python = /usr/bin/python3


On Wednesday, April 22, 2020 at 11:50:48 PM UTC-4, Zaldy B wrote:
>
> I can also see my inventory:
>
> TEMPLATES]# ansible all --list-hosts
>   hosts (1):
>     d2c2e-be-ag249-o
>
>
> On Wednesday, April 22, 2020 at 11:45:30 PM UTC-4, Zaldy B wrote:
>>
>> HI Brian,
>>
>> Thank you for the reply. 
>>
>> I did the 5v's as you mentioned, and dont know why it is saying that the 
>> hosts does not match. 
>>
>> TEMPLATES]# cp IOS_telnet.yaml /etc/ansible/
>> [root@spm6637 TEMPLATES]# ansible-playbook -i Cisco_Telnet IOS_telnet.yaml
>>  [WARNING]: Unable to parse /etc/ansible/TEMPLATES/Cisco_Telnet as an 
>> inventory source
>>  [WARNING]: No inventory was parsed, only implicit localhost is available
>>  [WARNING]: provided hosts list is empty, only localhost is available. 
>> Note that the implicit localhost does not match 'all'
>>  [WARNING]: Could not match supplied host pattern, ignoring: Cisco_Telnet
>>
>> PLAY [Telnet do show version for IOS] 
>> ***********************************************************************************************************************
>> skipping: no hosts matched
>>
>> PLAY RECAP 
>> **************************************************************************************************************************************************
>>
>>
>> I tried pinging it, and it was successful.
>>
>> TEMPLATES]# ansible Cisco_Telnet -m ping
>> d2c2e-be-ag249-o | SUCCESS => {
>>     "changed": false, 
>>     "ping": "pong"
>>
>>
>> TEMPLATES]# ansible --list-host  Cisco_Telnet
>>   hosts (1):
>>     d2c2e-be-ag249-o
>>
>>
>>
>> On Tuesday, April 21, 2020 at 1:04:54 AM UTC-4, Brian Coca wrote:
>>>
>>> for telnet use 5 v's (-vvvvv) , 3 won't show anything about the task. 
>>>
>>>
>>> -- 
>>> ---------- 
>>> 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/1f9f4647-79f1-4300-80a5-0da93d7b0ba1%40googlegroups.com.

Reply via email to