*Hi!!*
*Here is my code on my /etc/ansible/roles/new_vlan/vars/new_vlan_vars.yml
file:*
ansible_ssh_common_args:
-o StrictHostKeyChecking=no -o UserKnownHostsFile=~/.ssh/known_hosts
ansible_user: ansible
ansible_pass: ansible
*I want to disable the SSH authenticity of host check, and I do
On Tue, 14 Jan 2020 06:38:34 -0800 (PST)
Yehuda Pinhas wrote:
> *Here is my code on my /etc/ansible/roles/new_vlan/vars/new_vlan_vars.yml
> file:*
> ansible_ssh_common_args:
> -o StrictHostKeyChecking=no -o UserKnownHostsFile=~/.ssh/known_hosts
> ansible_user: ansible
> ansible_pass: ans
*Hi,*
*Thank you for your answer. but its still not working*
*any idea why? *
*here is my error now:*
[ansible@Netauto-Dev new_vlan]$ ansible-playbook new_vlan_playbook.yml
-v
ansible-playbook 2.9.1
config file = /etc/ansible/ansible.cfg
configured module search path =
[u'/home/ansible/
*Hi,*
*Thank you for your answer. but its still not working*
*This is how my code looks like now:*
ansible_ssh_common_args:
-o StrictHostKeyChecking=no -o UserKnownHostsFile=~/.ssh/known_hosts
ansible_user: ansible
ansible_password: ansible
*And here is my error now:*
[ansible@Netauto-De
On Tue, 14 Jan 2020 23:30:43 -0800 (PST)
Yehuda Pinhas wrote:
> using connection plugin network_cli (was local)
> [...]
> fatal: [R-TEST-SNIF]: FAILED! => {
> "changed": false,
> "msg": "command timeout triggered, timeout value is 10 secs.\nSee the
> timeout setting options in the Netw
>
> Hi Vladimir,
The device is a router, and I have made few more checks:
1. If im sshing normaly with ansible:ansible credentials it works
2. If im installing ssh keypair (publickey on the router) the ansible is
working.
Problem occurs once I take off the public key from the router and try to
Hi Vladimir,
The device is a router, and I have made few more checks:
1. If im sshing normaly with ansible:ansible credentials it works
2. If im installing ssh keypair (publickey on the router) the ansible is
working.
Problem occurs once I take off the public key from the router and try to
ssh
On Wed, 15 Jan 2020 01:26:07 -0800 (PST)
Yehuda Pinhas wrote:
> The device is a router
Sure it is. Could you disclose the brand and type?
> 1. If im sshing normaly with ansible:ansible credentials it works
> 2. If im installing ssh keypair (publickey on the router) the ansible is
> working.
I
*Oh. of course.*
*The router is virtual image - IOL.*
*Cisco IOS Software Version 15.4(1)T (I86BI_LINUX-ADVENTERPRISEK9-M)*
*Full code is:*
*/etc/ansible/roles/new_vlan/new_vlan_playbook.yml:*
---
- name:
--- 1. Applying Layer 2 Configuration ---
hosts: Snif_TES
On Wed, 15 Jan 2020 03:56:14 -0800 (PST)
Yehuda Pinhas wrote:
> *Cisco IOS Software Version 15.4(1)T (I86BI_LINUX-ADVENTERPRISEK9-M)*
Cisco IOS is supported platform
https://access.redhat.com/articles/3168091
> - name:
> hosts: Snif_TEST
> connection: local
The connection should be
*Hi Vladimir,*
*with this code on the playbook:*
---
- name:
--- 1. Applying Layer 2 Configuration ---
hosts: Snif_TEST
connection: network_cli
tasks:
- include_vars:
dir: /etc/ansible/roles/new_vlan/vars/
- include_role:
name: new
On Wed, 15 Jan 2020 05:36:23 -0800 (PST)
Yehuda Pinhas wrote:
> fatal: [R-TEST-SNIF]: UNREACHABLE! => {"changed": false, "msg": "Failed to
> connect to the host via ssh: Warning: Permanently added
> 'r-test-snif,10.70.54.102' (RSA) to the list of known hosts.\r\nPermission
> denied (publickey,
I'm not sure that "connection: network_cli" because not matter what i do I
get the same error... Its just not working.
How is it SSH problem if I can add a public key or just regulary SSH and
its working? that proves that its not an SSH problem on my remote machine
and leaves the fault in the
*I have no idea what to do next.. also ping check fails..*
[image: Capture.PNG]
*Again, if im adding the publickey for passwordless authentication Ansible
works.. but without it its not..*
*This is the configuration on the router side:*
R-TEST-SNIF#sh run
Building configuration...
Current con
When adding a public key are you adding it to an amiable user or to another
user and does your ping work if you pass —ask-pass?
Sent from my iPhone
> On Jan 16, 2020, at 04:36, Yehuda Pinhas wrote:
>
>
> I'm not sure that "connection: network_cli" because not matter what i do I
> get the s
Hi Douglas,
This is the result of --ask-pass:
[image: Capture.PNG]
I have no idea what that means haha. What do you think?
--
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, se
On Thu, 16 Jan 2020 01:36:28 -0800 (PST)
Yehuda Pinhas wrote:
> How is it SSH problem if I can add a public key or just regulary SSH and
> its working?
SSH tried (publickey,keyboard-interactive,password) and failed
> fatal: [R-TEST-SNIF]: UNREACHABLE! => {"changed": false, "msg": "Failed to
>
Hi again.
Anyone have any idea?
--
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 w
I think it has something to do with the publickey and that ansible tries to
authenticate using the public key as primary method of authentication.
For some reason it doesn't takes the username and password and just attempt
SSH with it.
I think that because of the log file.
--
You received thi
What happens when you setup your inventory to something like this:
[all:vars]# these defaults can be overridden for any group in the [group:vars]
sectionansible_connection=network_cliansible_user=ansible
[ios]...
[ios:vars]ansible_become=yesansible_become_method=enableansible_network_os=iosansibl
*Hi Phil,*
*Thank you for your help.*
*Playbook:*
- name:
--- 1. Applying Layer 2 Configuration ---
hosts: Snif_TEST
connection: network_cli
tasks:
- include_vars:
dir: /etc/ansible/roles/new_vlan/vars/
- include_role:
name: new_vl
Hi!
I have found out that some IOS devices have problems with gather_facts and
ansible does that by default. So I disabled it with gather_facts=no and now
ansible continues to the next step now without gathering facts and skips
the ios_facts error.
Also I have changed some paramiko config on th
22 matches
Mail list logo