Re: [ansible-project] problem while running role

2022-02-12 Thread Sk Ashir uddin
p work before? > > > On Sat, 12 Feb 2022 at 19:06, Sk Ashir uddin wrote: > >> >> The output of "ansible --version" >> >> ansible --version >> ansible 2.4.0 (devel a06014663c) last updated 2017/04/18 12:36:51 (GMT >> +000) >> con

Re: [ansible-project] problem while running role

2022-02-12 Thread Sk Ashir uddin
nsible/lib/ansible executable location = /usr/local/bin/ansible python version = 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4] On Saturday, 12 February 2022 at 23:28:30 UTC+5:30 dick@geant.org wrote: > On Sat, 12 Feb 2022 at 18:48, Sk Ashir uddin wrote: > > > > I just try

Re: [ansible-project] how to connect via ssh to different ansible nodes that have different root credentials ?

2020-12-12 Thread LaHwF Sk
thanks so much for helping guys dont you think Passwordless sudo for the ansible user on each host is risky ? otherwise i will try to apply your second method @Stu with vars file, i think is more secure Le vendredi 11 décembre 2020 à 18:18:27 UTC+1, Stu a écrit : > And I guess there could be

[ansible-project] how to connect via ssh to different ansible nodes that have different root credentials ?

2020-12-11 Thread LaHwF Sk
When configuring nodes with *Ansible*, each server has a its own user and password, but it asks for root pass for *ssh* connection. is it a good idea to give all servers same root pass for easy use? if not please how can i give each server different root pass and connect via ssh to use same

Re: [ansible-project] writing output to a csv file

2020-09-04 Thread SK
fork to see if it helps. > > Nuno Jordão > > On Thu, Sep 3, 2020 at 11:44 AM SK wrote: > >> Hi, >> >> Ansible version - 2.9 >> >> Facing issue in writing output to a csv file, its not writing the output >> consistently into the file. >> &g

[ansible-project] writing output to a csv file

2020-09-03 Thread SK
Hi, Ansible version - 2.9 Facing issue in writing output to a csv file, its not writing the output consistently into the file. Having an inventory file with three server IPs, script will execute command to check the disk space of each server and writing the output to a csv file. Sometimes

[ansible-project] Ansible playbook, trying to execute ssh-copy-id to remote host for passwd less login,

2019-12-17 Thread Ganeshwari Sk
Hi, I am new for ansible. I wrote the following playbook to execute the ssh-copy-id to copy the id_rsa.pub key to remote host, but I am getting permission denied error or hanging when passing password as argument, Playbook : --- - name: Copy ssh key hosts: Testing-Server become: true

[ansible-project] Re: execute ssh-copy-id, if passwdless login not able

2019-12-11 Thread Ganeshwari Sk
if the first task failed. Please let me know the mistake I am doing here. On Wednesday, 11 December 2019 14:51:53 UTC+5:30, Ganeshwari Sk wrote: > > in Ansible playbook, I want to do two task, one to check passwdless ssh > login is enabled or not, and in another task if passwdless login

[ansible-project] execute ssh-copy-id, if passwdless login not able

2019-12-11 Thread Ganeshwari Sk
in Ansible playbook, I want to do two task, one to check passwdless ssh login is enabled or not, and in another task if passwdless login not abled for the remote host, then execute the ssh-copy-id command. I have written the following playbook, but it is not working as desired, please help me

[ansible-project] How to remove unused/old configuration automatically using Ansible?

2018-05-21 Thread SK
I am currently using Ansible to generate running configuration for the network devices. Here is the simple scenario I have. I have defined the interface type (routed, access, trunk) in the variables file and then created a jinja file that will generate the necessary configuration based on

[ansible-project] Re: ios_modules

2017-12-19 Thread SK
I got a response from Cisco sales representative that Ansible will not work on the Smart series switches as they come with limited functionality due to less cost. On Tuesday, December 12, 2017 at 5:05:35 PM UTC+8, SK wrote: > > Have you been able to identify anything around this? I am

[ansible-project] Re: ios_modules

2017-12-12 Thread SK
Have you been able to identify anything around this? I am trying to get Ansible to work on SG200 series switch and unable to. Is it supported? Thank you in advance! On Monday, April 3, 2017 at 10:27:21 PM UTC+8, Dave wrote: > > Hi All, > > I've got a question regarding the supported platforms

Re: [ansible-project] No output from Cisco router

2017-12-08 Thread SK
Excellent! Many thanks for the pointer and it is working now. Is there any link that you could provide me regarding the best practices for indendations? On Friday, December 8, 2017 at 4:19:41 PM UTC+8, Kai Stian Olstad wrote: > > On Friday, 8 December 2017 09.10.55 CET SK wrote: &g

Re: [ansible-project] No output from Cisco router

2017-12-08 Thread SK
Hi, I am also facing a similar problem. The output says "register" is not supported for ios_command module. Any idea on this? I am running the latest ansible version 2.4.2.0. If I don't use the register command, the playbook executes successfully, so the error is only caused by

[ansible-project] ansible-galaxy install is failing

2017-12-05 Thread SK
*I am following https://eos.arista.com/arista-eos-roles-for-ansible/ to setup Ansible for Arista devices and I am receiving the below errors:* [root@dev14 ansible]# ansible-galaxy install arista.eos-system [WARNING]: - arista.eos-system was NOT installed successfully: Failed to get data from

Re: [ansible-project] Ansible network

2017-11-22 Thread SK
MP COMMANDS WITHIN PB > delegate_to: localhost > ios_config: > provider: "{{ provider }}" > commands: >- snmp-server community Test1ng rw > > > (this is not tested) > > kind regards > Pshem > > > On Wed, 22 Nov 2017 at 2

Re: [ansible-project] Ansible network

2017-11-21 Thread SK
sed by indentation: > > - name: configure provider >set_fact: > > set_fact must start at the same position as 'name' above it. > > kind regards > Pshem > > > On Tue, 21 Nov 2017 at 18:39 SK <satyanara...@gmail.com > > wrote: > >> Thank you for the s

Re: [ansible-project] Ansible network

2017-11-20 Thread SK
17, 2017 at 5:16:24 PM UTC+8, Pshem Kowalczyk wrote: > > Hi, > > You need a space between the dash '-' and 'name:' in the task list. > I suggest you find a text editor that supports YAML validation to make > your life easier. > > kind regards > Pshem > > &g

[ansible-project] Ansible network

2017-11-16 Thread SK
Hi, I am using Ansible for the first time to test basic commands on Network devices. When I run the playbook, I am encountering errors even though the configuration looks normal. Below is the OS of my source machine where Ansible is installed: CentOS Linux release 7.3.1611 (Core) My