Re: [ansible-project] Re: Overriding detected file kind 'yaml' with 'playbook' for given positional argument

2022-12-25 Thread rajthecomputerguy
>> >> As it is, since you can't pick which lintable schema to use on a given >> file (at least not from --help's output, or the missing man page), I'll >> stand by my original statement: it's an informational message that happens >> to begin with the text "WARNING&q

[ansible-project] Re: Overriding detected file kind 'yaml' with 'playbook' for given positional argument

2022-12-22 Thread rajthecomputerguy
ion: the yaml file is being treated > as a playbook. > > On Thursday, December 22, 2022 at 5:40:02 AM UTC-5 rajthecomputerguy wrote: > >> Hi Team, >> >> I am facing below error while doing ansible-lint, Any help would be >> appreciated >> >> command:

[ansible-project] Overriding detected file kind 'yaml' with 'playbook' for given positional argument

2022-12-22 Thread rajthecomputerguy
Hi Team, I am facing below error while doing ansible-lint, Any help would be appreciated command: *ansible-lint test.yaml* *Overriding detected file kind 'yaml' with 'playbook' for given positional argument* Thanks, Raj -- You received this message because you are subscribed to the Google

Re: [ansible-project] Ansible - combine output

2022-10-28 Thread rajthecomputerguy
Please try this, just explore hostvars in another play --- - hosts: all collections: - netapp.ontap gather_facts: no connection: local vars: #ansible_python_interpreter: /usr/bin/python3 input: hostname: "{{ inventory_hostname }}" username: 'aharonu'

Re: [ansible-project] Unarchive module

2022-08-11 Thread rajthecomputerguy
It got resolved, Actually it was a permission issue. Thanks On Friday, August 12, 2022 at 9:12:37 AM UTC+5:30 dnmv...@gmail.com wrote: > On Fri, 12 Aug 2022 at 04:26, rajthecomputerguy > wrote: > >> Any help would be appreciated ! >> > > Really? > Did you try

Re: [ansible-project] Unarchive module

2022-08-11 Thread rajthecomputerguy
Any help would be appreciated ! On Wednesday, August 3, 2022 at 8:58:02 PM UTC+5:30 ra...@linuxia.de wrote: > On 03/08/2022 17:21, rajthecomputerguy wrote: > > Hi Team, > > > > below code failing. Any help would be appreciated > > > > - name: unarchive the patch

[ansible-project] Unarchive module

2022-08-03 Thread rajthecomputerguy
Hi Team, below code failing. Any help would be appreciated - name: unarchive the patch unarchive: src: *** dest: ** remote_src: yes zip file is 1.5 gb error is msg: "fail to connect host to host vis ssh:" other few files are unzipping without issue

Re: [ansible-project] The name of a node is not resolved after it was resolved ?

2022-03-04 Thread Rajthecomputerguy
you can try in separate yaml file *** *mediawiki_config.yaml* - name: "mediawiki configuration" become: yes become_user: "apache" args: creates:

Re: [ansible-project] Re: Playbook error - ansibleundefinedvariable 'str object' has no attribute 'device_name'

2022-02-02 Thread Rajthecomputerguy
can you try to debug first and see whats returning - name: debug debug: msg: "{{ item['device_name'] }}" loop: "{{ ebs_volumes_list }}" On Wed, Feb 2, 2022 at 10:50 PM Shivani Arora wrote: > Hi All, > > Looking for suggestions for above query. > > Thanks > > On

[ansible-project] Re: MYSQL failing on couple of servers

2021-09-21 Thread rajthecomputerguy
This shows you need to install pymysql python package on your remote host. On Tuesday, September 21, 2021 at 8:31:45 PM UTC+5:30 Raj wrote: > Hi All, > > My playbook is running good on 90 servers getting all information mysql. > > Issue is failing on 10 servers below is the error. > > Note:

Re: [ansible-project] Inventory report

2021-09-21 Thread rajthecomputerguy
Please look at this example, this will help you to extract information in csv https://github.com/rajthecomputerguy/ansible/tree/master/linux/Collecting_Ansible_facts On Tuesday, September 21, 2021 at 8:02:27 PM UTC+5:30 shankard...@gmail.com wrote: > {% for host in ansible_play_ba

Re: [ansible-project] Re: Simple Playbook for mysql query

2021-09-18 Thread Rajthecomputerguy
ng line appears to be: > > > - name: get trunk names > ^ here > > On Friday, September 17, 2021 at 10:43:24 PM UTC-4 rajthecomputerguy wrote: > >> Can you check the syntax using *ansible-playbook yuouplaybook.yaml >> --syntax-check* >> >> also, ensure that module

[ansible-project] Re: Simple Playbook for mysql query

2021-09-17 Thread rajthecomputerguy
Can you check the syntax using *ansible-playbook yuouplaybook.yaml --syntax-check* also, ensure that module exists by running *ansible-doc community.mysql.mysql_query* On Saturday, September 18, 2021 at 6:03:15 AM UTC+5:30 adam.f...@gmail.com wrote: > I confirmed that it was already

Re: [ansible-project] Re: How to deploy multiple image using Ansible on VMwar

2021-09-17 Thread Rajthecomputerguy
with_items – This is a loop in Ansible that allows us to run this playbook for the multiple items/servers we are specifying in the “servers” variable Fo eg: name: Clone multiple VMs hosts: localhost gather_facts: false vars_files: multiple_vms.yml tasks: - name: Clone multiple VMs

[ansible-project] Re: Issue with template module

2021-09-16 Thread rajthecomputerguy
Use Verbose -vvv to see more details on error On Thursday, September 16, 2021 at 5:59:08 PM UTC+5:30 lift...@gmail.com wrote: > We have a playbook that uses a jinja2 template to prepare a report and > email us. For some reason, the template module is failing. Here's what > I'm calling in my

[ansible-project] Re: Aggregating debug msg output

2021-09-16 Thread rajthecomputerguy
Save all your output to the file and assemble it using assemble module. On Friday, September 17, 2021 at 1:46:14 AM UTC+5:30 dyio...@gmail.com wrote: > Thanks, Roland. The fact is, I'd like to "aggregate" (for lack of a > better term) any debug msg output, regardless of what information the

Re: [ansible-project] Playbook not able to SSH to the hosts

2021-09-16 Thread rajthecomputerguy
First step is to check if it is connecting without Ansible from your server On Friday, September 17, 2021 at 9:24:59 AM UTC+5:30 weiye...@gmail.com wrote: > Is the server name resolvable? Can the computer ansible see the server? > -- > *From:*

Re: [ansible-project] getting error when trying to use 'at' module to schedule a script

2021-08-25 Thread rajthecomputerguy
We cannot execute any script on network devices, execution will happen only in the Ansible server . The cron job will only do the scheduling job. On Wednesday, August 25, 2021 at 4:12:40 AM UTC+5:30 Vikram S wrote: > Hi, > > After going tghrough documentation for cron module, i doubt if it

Re: [ansible-project] need assistance to gather access list rules associated with public ip's only using ansible

2021-08-18 Thread Rajthecomputerguy
You have to use regex patterns to match the desired ACL's On Wed, Aug 18, 2021 at 7:54 PM Vikram S wrote: > i need to gather firewall rules (ACL) in which source ip is a public ip or > public subnet and destination is an internal server and port is tcp/3389. I > am wondering how to write a

Re: [ansible-project] Re: Identifying IOS and NXOS

2021-07-30 Thread rajthecomputerguy
ny network module with >> `connection: network_cli`) is dependent on the correct cliconf and terminal >> plugins being loaded which is identified by `ansible_network_os` value. >> >> Thanks. >> >> On Tuesday, July 6, 2021 at 4:12:26 PM UTC+5:30 rajthecomputerguy wrote: &g

Re: [ansible-project] cli_command | help

2021-07-29 Thread rajthecomputerguy
Hi Antony Playbook [image: Capture.JPG] error [image: Capture1.JPG] I get this prompt first once i login the device [image: prompt.JPG] On Thursday, July 29, 2021 at 7:00:28 PM UTC+5:30 Antony Stone wrote: > On Thursday 29 July 2021 at 15:26:20, rajthecomputerguy wrote: > > >

[ansible-project] cli_command | help

2021-07-29 Thread rajthecomputerguy
I am logging to Radware Alteon device, When I tried logging in I get below prompt It logins to the device once after inputting 'y' or hitting 'enter' key manually. >ssh radware01 -

Re: [ansible-project] How To Filter Ansible Facts In Template And Playbook

2021-07-29 Thread rajthecomputerguy
You can call them directly in your playbook On Thursday, July 29, 2021 at 9:21:49 AM UTC+5:30 dick@geant.org wrote: > What are you looking for exactly? > > On Wed, 28 Jul 2021 at 20:22, Isaiah Banks wrote: > >> Hello. I am new to Ansible. I am trying to figure out how I can filter a >>

Re: [ansible-project] Re: Working with registered results

2021-07-26 Thread Rajthecomputerguy
Use strip() method to get rid of whitespace debug: var: intf[0].strip() On Tue, Jul 27, 2021 at 2:13 AM madd...@gmail.com wrote: > I'm getting closer using regex...trying to tweak the regex now (Still any > help would be appreciated): > > --- > - name: Find mac address in

[ansible-project] Re: How to answer to prompt in configuration mode Cisco switch

2021-07-17 Thread rajthecomputerguy
Try this cli_command: command: "aaa accounting identity default start-stop group" prompt: - "Do\\ you\\ wish\\ to\\ continue\\?\\ \\[yes\\]:" answer: - 'yes\r' On Sunday, July 11, 2021 at 10:44:07 AM UTC+5:30 mana.ma...@gmail.com wrote: > Hi all, > > I want to

Re: [ansible-project] how to eliminate unicode characters while doing regex matching an ip address

2021-07-08 Thread Rajthecomputerguy
Try "{{ output.stdout[0] }}" on the debug task On Thu, Jul 8, 2021 at 4:06 PM Stefan Hornburg (Racke) wrote: > On 08/07/2021 12:18, Charles Daniel wrote: > > Hi Dick, Below is the complete output of the playbook, > > > > [root@tower1 temp_play]# ansible-playbook testplay2.yml -i >

Re: [ansible-project] Re: [Errno 110] Connection timed out with multiple ssh in router

2021-07-08 Thread rajthecomputerguy
Can you try this in ansible.cfg? [persistent_connection] network_cli_retries = 5 On Thursday, July 8, 2021 at 7:28:20 AM UTC+5:30 nambata...@gmail.com wrote: > Hi rajthecomputerguy, what do you mean by tacas? I got no problem with > authentication. only with connection time out. I

Re: [ansible-project] Re: [Errno 110] Connection timed out with multiple ssh in router

2021-07-07 Thread rajthecomputerguy
Are you using tacas for authentication? On Thursday, July 8, 2021 at 6:12:11 AM UTC+5:30 nambata...@gmail.com wrote: > > > Is there no solution for this guys? > On Tuesday, July 6, 2021 at 10:25:03 PM UTC+8 Vincent Nambatac wrote: > >> and also Im running at an ubuntu OS, here is the ram on my

Re: [ansible-project] Re: Identifying IOS and NXOS

2021-07-06 Thread rajthecomputerguy
Is there any solution for this? On Monday, July 5, 2021 at 6:57:10 AM UTC+5:30 rajthecomputerguy wrote: > I have only one group in inventory file which has IOS and NXOS devices > mixed, I can only set ansible_network_os variable as 'IOS' > > On Monday, July 5, 2021 at 4:49:50

Re: [ansible-project] Re: Identifying IOS and NXOS

2021-07-04 Thread rajthecomputerguy
t; you would just need to make 2 tasks, one for ios and one for nexus. > > Then create a when statement > > when: ansible_network_os is "ios" > > Same for the nexus task just change it too nexus > > You put the when statement at the task level. > > > >

[ansible-project] Re: Identifying IOS and NXOS

2021-07-03 Thread rajthecomputerguy
Any help would be appreciated On Thursday, July 1, 2021 at 3:55:43 PM UTC+5:30 rajthecomputerguy wrote: > Hi Team, > > I have 100 devices in host file, both IOS and NXOS mixed. I am trying pull > OS details and hostname as report. Since IOS and NXOS devices are mixed > in

[ansible-project] Identifying IOS and NXOS

2021-07-01 Thread rajthecomputerguy
Hi Team, I have 100 devices in host file, both IOS and NXOS mixed. I am trying pull OS details and hostname as report. Since IOS and NXOS devices are mixed in inventory, How can IOS_facts and NXOS_facts work in single playbook when there is no group in inventory. I have only one group in

Re: [ansible-project] How to display verbose only for a particular task in playbook?

2021-06-01 Thread Rajthecomputerguy
I don't think there is a straightforward way. As a workaround you could run the whole play with no_log: true and add no_log: false explicitly to your task calling ec2 action. Then run the playbook with -v. On Wed, Jun 2, 2021 at 1:37 AM Vikram S wrote: > I have several tasks in a playbook. I

Re: [ansible-project] Multiple commands output in a single file

2021-05-31 Thread Rajthecomputerguy
uot;: false > } > > MSG: > > Unsupported parameters for (lineinfile) module: with_items Supported > parameters include: > attributes,backrefs,backup,content,create,delimiter,directory_mode,follow,force,group,insertafter,insertbefore,line,mode,owner,path,regexp,remote_src,

Re: [ansible-project] Multiple commands output in a single file

2021-05-31 Thread Rajthecomputerguy
Can you try this Use this to write several strings into a file: - name: save output to a file lineinfile: create: yes line: "{{item}}" path: ./output/{{ inventory_hostname }}.txt with_items: "{{ print_output.stdout[1] }}" On Mon, May 31, 2021 at 11:28 AM Djay wadhwa wrote: >

Re: [ansible-project] Re: Handling Prompt in Cisco IOS_CONFIG module

2021-05-31 Thread Rajthecomputerguy
Yes, ios_config does not support prompting, Can you disable prompting and re-enable once a task is done? On Mon, May 31, 2021 at 4:55 PM R.B. Kumar wrote: > I got the answer from another forum. It is just a workaround only using > cli_command module > > I read ansible 2.7 dont support prompt in

Re: [ansible-project] How To Get Hostname, OS and Version From Ansible Facts In A List Format?

2021-05-31 Thread Rajthecomputerguy
Can you show me the error message? On Mon, May 31, 2021 at 7:03 PM 'Marcus Hayhurst' via Ansible Project < ansible-project@googlegroups.com> wrote: > Hello everyone, > > I'm attempting to get a list of information of all my machines to send in > an email: > > *Hostname - OS (and) Version * > >

Re: [ansible-project] Using Variable inside IOS_CONFIG

2021-05-29 Thread Rajthecomputerguy
Try -- set_fact the grep output and try to call the variable in ios_config set_fact: desired_ntp: {{ var_ip_address.stdout[0].split('\n')[1].split()[1] }} On Sun, May 30, 2021 at 12:25 AM R.B. Kumar wrote: > Hello Everyone - Need your help > > When I use a variable inside *ios_config* I

Re: [ansible-project] TTP parsing doesn't work in ansible, need assistance

2021-04-21 Thread Rajthecomputerguy
try removing quotes in stdout On Wed, Apr 21, 2021 at 3:34 PM Vikram S wrote: > > I wrote below script to parse output of 'sh flash:' however iam getting > blank output. > > I checked several examples and i seem to be following the format properly > yet doesn't work. What am i doing wrong? >

Re: [ansible-project] How do i export the ansible output of a playbook TASK to a excel sheet or table?

2021-03-15 Thread Rajthecomputerguy
write a Jinja2 template and render the variable values and get a html table output. On Mon, Mar 15, 2021 at 12:18 PM Vikram S wrote: > I am writing a script for IOS upgrade in switches and script involves > multiple TASKS like checking copying image, settings boot statement, etc. > The final

Re: [ansible-project] How to verify boot statement for ALL member switches in stacked switch?

2021-03-06 Thread Rajthecomputerguy
flash:/c2960x-universalk9-mz.152-4.E7/c2960x-universalk9-mz.154-4.E4.bin > > BOOT path-list : > flash:/c2960x-universalk9-mz.152-4.E7/c2960x-universalk9-mz.154-4.E4.bin > > BOOT path-list : > flash:/c2960x-universalk9-mz.152-4.E7/c2960x-universalk9-mz.154-4.E4.bin > > On Thursday

Re: [ansible-project] Adding single quotes when I use regex_search('[^=]*$')

2021-03-03 Thread Rajthecomputerguy
Try something like this "device": "{{ device_id | int }}" On Wed, Mar 3, 2021 at 6:24 PM Pravin V wrote: > Hello Racke, > I'm trying to pass the numeric values of an variable into JSON. > - name: Device ID > set_fact: > "device_id": "{{ device_item_netbox.id }}" > > - name: DEBUG -

Re: [ansible-project] How to verify boot statement for ALL member switches in stacked switch?

2021-03-03 Thread Rajthecomputerguy
you can use regex to match and pipe length -- that should be equal to 3 regex_findall("flash:/c2960x-universalk9-mz.152-4.E7/c2960x-universalk9-mz.154-4.E4.bin") | length On Thu, Mar 4, 2021 at 3:24 AM Vikram S wrote: > When i use below command, it automatically copies image to ALL member >

Re: [ansible-project] Ansible writing to a file

2021-03-03 Thread Rajthecomputerguy
looks like you have missed " delegate_to: localhost" in first task. On Thu, Mar 4, 2021 at 4:47 AM 'Chris Bidwell - NOAA Federal' via Ansible Project wrote: > Hi all, > > So I'm trying to write to a local file from my ansible server based off > information I've gotten from my inventory hosts.

Re: [ansible-project] Does IOS network module work for IOS-XE models as well?

2021-03-03 Thread Rajthecomputerguy
IOS module will work for IOS-XE devices as well. On Wed, Mar 3, 2021 at 8:46 PM Vikram S wrote: > Will IOS network module work only for IOS OS running devices or will it > work for IOS-XE OS devices as well? > > Reason iam asking is because i see separate modules for IOS, NX-OS and > IOS-XR but

[ansible-project] skip role if condition are not meet

2020-08-24 Thread rajthecomputerguy
Can you try this? tasks: - name: Test1 include_role: name: scaling_out when: some condition -- 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

Re: [ansible-project] how to compare lists whose elements are regular expressions in Ansible?

2020-08-12 Thread rajthecomputerguy
localhost : ok=3changed=0unreachable=0failed=0 On Wednesday, August 12, 2020 at 11:05:09 AM UTC+5:30, Vladimir Botka wrote: > > On Tue, 11 Aug 2020 21:29:40 -0700 (PDT) > rajthecomputerguy &

[ansible-project] how to compare lists whose elements are regular expressions in Ansible?

2020-08-11 Thread rajthecomputerguy
Hi Team I wish to compare two lists, one list has regex expression and the second has ordinary data and return a match. Please help e.g. list1: - linux.* - 6.* - mysql|python|gvim list2: - linux - 6.0.1 - mysql Thanks -- You received this message because you are

Re: [ansible-project] Ansible modules to pull info from checkpoint firewall

2020-07-18 Thread rajthecomputerguy
Hi Kethan, I am having same issue, Is this resolved? On Thursday, June 13, 2019 at 9:23:12 PM UTC+5:30, Kethan R wrote: > > no Luck. > > [WARNING]: sftp transfer mechanism failed on [x]. Use ANSIBLE_DEBUG=1 > 19 > to see detailed information > 20 > 21 > [WARNING]: No python interpreters

[ansible-project] Nxos_config module issue

2020-07-02 Thread rajthecomputerguy
> > Hi Team >> >> nxos_config module where Ansible cannot able to return below highlighted >> information from device rather it returns the config as changed. >> >> Is this a bug? please help >> >> Manual: >> >> lab.device.local(config)# logging server x.x.x.x 6 >> Can't configure more than 8

[ansible-project] Re: Has anyone connected Riverbed (network device) thru Ansible?

2020-06-24 Thread rajthecomputerguy
Any help? On Thursday, April 23, 2020 at 6:29:13 PM UTC+5:30, rajthecomputerguy wrote: > > Hi Team, > > Has anyone connected Riverbed (network device) thru Ansible? like using > command module or cli_command. > > Thanks > -- You received this message because you are

[ansible-project] Re: Handling password prompt -- IOS_command module

2020-05-21 Thread rajthecomputerguy
Any help would be appreciated. On Thursday, May 21, 2020 at 1:36:15 PM UTC+5:30, rajthecomputerguy wrote: > > Hi Team, > > How to handle password prompt when doing scp file transfer. Actually > server is generating banner message along with password prompt. Please help &

[ansible-project] Handling password prompt -- IOS_command module

2020-05-21 Thread rajthecomputerguy
Hi Team, How to handle password prompt when doing scp file transfer. Actually server is generating banner message along with password prompt. Please help how to resolve the issue. - name: transfer the image ios_command: commands: - command: 'copy scp://{{ ansible_user }}@{{

[ansible-project] Has anyone connected Riverbed (network device) thru Ansible?

2020-04-23 Thread rajthecomputerguy
Hi Team, Has anyone connected Riverbed (network device) thru Ansible? like using command module or cli_command. Thanks -- 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

[ansible-project] Connecting Riverbird through Ansibe

2020-04-23 Thread rajthecomputerguy
Hi Team, Has anyone connected Riverbed (network device) thru Ansible? like using command module or cli_command. Thanks -- 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

[ansible-project] Ansible mail callback

2020-04-23 Thread rajthecomputerguy
Hi Team, How to configure mail callback to generate the report as email for failed jobs? Thanks -- 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

Re: [ansible-project] Re: Checkpoint Interface details

2020-03-03 Thread rajthecomputerguy
I got this fixed.. thanks - name: set clish cli_command: command=clish - name: set pager cli_command: command='set clienv rows 0' - name: Get hostname cli_command: command='show hostname' register: r0 On Tuesday, March 3, 2020 at 3:41:45 PM UTC+5:30, rajthecomputerguy wrote: > > Hi

Re: [ansible-project] Re: Checkpoint Interface details

2020-03-03 Thread rajthecomputerguy
Hi Racke, In Check Point GAiA system, list of all interfaces can be viewed using command "show interfaces" Thanks, On Wednesday, February 26, 2020 at 3:41:01 PM UTC+5:30, Stefan Hornburg (Racke) wrote: > > On 2/26/20 10:48 AM, rajthecomputerguy wrote: > > Hi Team, &

[ansible-project] Re: Checkpoint Interface details

2020-03-03 Thread rajthecomputerguy
On Wednesday, February 19, 2020 at 7:18:55 PM UTC+5:30, rajthecomputerguy wrote: > > Hi , > > Has anybody generated interface report for checkpoint firewalls using > Ansible? > > Thanks > -- You received this message because you are subscribed to the Google Groups

[ansible-project] Re: Checkpoint Interface details

2020-02-26 Thread rajthecomputerguy
Hi Team, Any help would be appreciated ? Thanks On Wednesday, February 19, 2020 at 7:18:55 PM UTC+5:30, rajthecomputerguy wrote: > > Hi , > > Has anybody generated interface report for checkpoint firewalls using > Ansible? > > Thanks > -- You received this message be

[ansible-project] Checkpoint Interface details

2020-02-19 Thread rajthecomputerguy
Hi , Has anybody generated interface report for checkpoint firewalls using Ansible? Thanks -- 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] Connecting Radware cli

2020-02-17 Thread rajthecomputerguy
Hi, Has anyone connected Cli of Radware(Loadbalancer device) using Ansible? Thanks, Raj -- 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

Re: [ansible-project] How can I call list as a conditional for ansible_hostname

2019-12-05 Thread rajthecomputerguy
me is search(regexp) > vars: > regexp: "{{ '|'.join(northregion) }}" > > --- > > Sam > > On Nov 4, 2019, at 01:21, rajthecomputerguy > wrote: > > Hi team, > > I am calling a list that contains multiple strings, How to put condition > in when statement to m

Re: [ansible-project] How to convert json to csv

2019-11-20 Thread rajthecomputerguy
Hornburg (Racke) wrote: > > On 11/20/19 4:43 PM, rajthecomputerguy wrote: > > Hi Racke, > > > > I parsed the cisco command "show interface status" and converted to > json , now I want to convert it to csv. > > > > - name: Write interfac

[ansible-project] Getting cisco command output based on matched condition

2019-11-20 Thread rajthecomputerguy
Hi Team I want get output of *"show mac add int {{ item.key }}" *as report for each interface, Can anyone guide me how to export the command output only matched condition as text file? *Playbook:* * roles:* *- ansible-network.network-engine* * tasks:* *- name: Collect

Re: [ansible-project] How to convert json to csv

2019-11-20 Thread rajthecomputerguy
content: "{{ interfaces_status_facts | to_nice_json }}" dest: "/var/lib/awx/projects/test-sk/interfaces_status_facts-{{ inventory_hostname }}.json" On Wednesday, November 20, 2019 at 4:40:51 PM UTC+5:30, Stefan Hornburg (Racke) wrote: > > On 11/20/19 11:30 AM, r

[ansible-project] How to convert json to csv

2019-11-20 Thread rajthecomputerguy
Hi Team, Anybody knows how to convert json to csv in ansible? Thanks, Pushparaj -- 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

Re: [ansible-project] Re: Conditions with vlan id

2019-11-19 Thread rajthecomputerguy
.data.vlan in vlan_id_l2 with_dict: "{{ interfaces_status_facts }}" On Friday, October 25, 2019 at 6:18:26 PM UTC+5:30, Dick Visser wrote: > > On Thu, 24 Oct 2019 at 16:19, rajthecomputerguy > > wrote: > > > > This got resolved. thanks team. > >

[ansible-project] How can I call list as a conditional for ansible_hostname

2019-11-03 Thread rajthecomputerguy
Hi team, I am calling a list that contains multiple strings, How to put condition in when statement to match list of strings that matches ansible_hostname below playbook does not work. please help ansible_net_hostname: testalpcsr029 vars: northregion: [ 'alp', alt' ] playbook:-

[ansible-project] Re: Conditions with vlan id

2019-10-24 Thread rajthecomputerguy
This got resolved. thanks team. On Wednesday, October 16, 2019 at 12:12:36 PM UTC+5:30, rajthecomputerguy wrote: > > Hi Team, > > I need to push the line in cisco switch if vlan id =25 or vlan id = > 100-119. what module should I use? > > I parsed *show interfaces

[ansible-project] Conditions with vlan id

2019-10-16 Thread rajthecomputerguy
Hi Team, I need to push the line in cisco switch if vlan id =25 or vlan id = 100-119. what module should I use? I parsed *show interfaces status* and got below structured output. please help. "Gi1/0/12": { "data": { "duplex": "auto",

[ansible-project] Cisco switch identifying unused port more than 90 days

2019-09-24 Thread rajthecomputerguy
Hi Team, I want to identify the switch ports which are not used more than 90 days. Has anyone done this project using ansible ? Thanks Pushparaj -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

[ansible-project] Ansible for Cisco CallManager

2019-08-13 Thread rajthecomputerguy
Hi Team, Anybody using Ansible for cisco call manager? thanks -- 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.

[ansible-project] callback plugin in tower

2019-08-08 Thread rajthecomputerguy
Hi team, Call back pluglin (yaml ) not working in Ansible tower. Can anyone help me how to configure below settings in Ansible tower . STDOUT_CALLBACK = yaml bin_ansible_callbacks = True callback_whitelist = yaml, timer, profile_tasks thanks -- You received this message because you are

[ansible-project] Re: Ansible Security query

2019-07-25 Thread rajthecomputerguy
bout automation. And for that it uses secured ssh connections to > perform tasks. > > Do you want to understand how it securely performs the tasks? > > > On Wednesday, 10 July 2019 11:29:07 UTC+5:30, rajthecomputerguy wrote: >> >> Hi, >> >> Is there any blog about Ans

[ansible-project] Re: formatting IOS commands

2019-07-23 Thread rajthecomputerguy
It has been fixed. you will get nice output by setting below options in configuration file. STDOUT_CALLBACK = yaml bin_ansible_callbacks = True thanks On Friday, July 12, 2019 at 12:53:13 AM UTC+5:30, rajthecomputerguy wrote: > > Hi Team, > > I am collecting IOS commands in my pl

Re: [ansible-project] Re: Cisco 3850 upgrade error

2019-07-23 Thread rajthecomputerguy
"software install file flash" cmdlet is not supported for specific model of switch. "request platform software package install" works!!! thanks On Tuesday, July 23, 2019 at 1:58:42 AM UTC+5:30, Dick Visser wrote: > > On Mon, 22 Jul 2019 at 19:31, rajthecomputerguy &

[ansible-project] Re: Cisco 3850 upgrade error

2019-07-22 Thread rajthecomputerguy
It has been fixed. thanks . On Thursday, July 18, 2019 at 8:17:39 PM UTC+5:30, rajthecomputerguy wrote: > > Hi team > > getting below error . Please help . this is happening when upgrading cisco > 3850 > > > 12 - name: expand the IOS file and copy to 2 switches &g

[ansible-project] Cisco 3850 upgrade error

2019-07-18 Thread rajthecomputerguy
Hi team getting below error . Please help . this is happening when upgrading cisco 3850 12 - name: expand the IOS file and copy to 2 switches 13 ios_command: 14 commands: 15 - 'software install file flash:{{ new_system_image }} on-reboot' 16 timeout: 1 Error

Re: [ansible-project] Ansible Security query

2019-07-12 Thread rajthecomputerguy
:29:42 PM UTC+5:30, Jonathan Lozada De La Matta wrote: > > what exactly are you looking for? what security standards? what about > security in ansible? > > On Thu, Jul 11, 2019 at 9:58 AM rajthecomputerguy > wrote: > >> I need the security standards that Ansible

Re: [ansible-project] Identifying master slave on cisco stack switches

2019-07-12 Thread rajthecomputerguy
nsible? > > > On Thu, 11 Jul 2019 at 23:20, rajthecomputerguy > > wrote: > > > > Hi Team, > > > > I need to identify master slave on cisco stack switches 3850 in ansible > to give some conditions. Any help appreciated. > > > > th

[ansible-project] Identifying master slave on cisco stack switches

2019-07-11 Thread rajthecomputerguy
Hi Team, I need to identify master slave on cisco stack switches 3850 in ansible to give some conditions. Any help appreciated. thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

[ansible-project] formatting IOS commands

2019-07-11 Thread rajthecomputerguy
Hi Team, I am collecting IOS commands in my playbook and I need output human readable , I use( to_nice_yaml(indent=8, width=1337) currently. Any other suggestions to view the output as human readable. ios_command: 30 commands: 31 - show switch detail 32 - show module 33 -

Re: [ansible-project] Ansible Security query

2019-07-11 Thread rajthecomputerguy
curity-and-compliance > > On Wed, 10 Jul 2019 at 07:59, rajthecomputerguy > > wrote: > > > > Hi, > > > > Is there any blog about Ansible security and compliance in ansible > official site ? > > > > thanks > > > > -- > > Y

[ansible-project] Ansible Security query

2019-07-09 Thread rajthecomputerguy
Hi, Is there any blog about Ansible security and compliance in ansible official site ? thanks -- 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] usage of carriage return

2019-06-18 Thread rajthecomputerguy
Hi Team Can someone explain in detail what "\r" exactly does in below play? ios_command: commands: - command: 'copy tftp://{{ tftp_server_ip }}/{{ new_system_image }} bootflash:' prompt: 'Destination filename \[{{ new_system_image }}\]' answer: "\r" -- You received this message because you

[ansible-project] LDAP and TACACS integration in ansible tower

2019-06-12 Thread rajthecomputerguy
Hi Team, Can both LDAP(AD) and TACACS be integrated in ansibe tower? Can anyone explain me the benefits or use of LDAP and TACACS with tower? thanks Pushparaj -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

[ansible-project] Tower license query

2019-06-07 Thread rajthecomputerguy
Hi Team, We bought tower license two months ago but never used, the question is license duration will be counted after activation or from purchase date. thanks, Pushparaj -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe

[ansible-project] What is the major difference between Redhat ansible network automation and redhat ansible automation?

2019-05-29 Thread rajthecomputerguy
Hi team, What is the major difference between Redhat ansible network automation and redhat ansible automation? thanks, Pushparaj -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails

[ansible-project] Is Red Hat Ansible Network Automation Separate product?

2019-05-28 Thread rajthecomputerguy
Red hat network automation is a new product? -- 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 post to this

[ansible-project] Is Red Hat Ansible Network Automation Separate product?

2019-05-28 Thread rajthecomputerguy
Is Red Hat Ansible Network Automation Separate product? thanks Pushparaj -- 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] Re: copying bin file from ansible control server to switch

2019-05-24 Thread rajthecomputerguy
: src: /home/testuser/ansible/from_ansible.text protocol: tftp dest: flash:/from_ansible.text On Friday, May 24, 2019 at 4:23:23 PM UTC+5:30, rajthecomputerguy wrote: > > Hi team, > > Can you please provide me the module to copy the IOS image file to cisco > swit

[ansible-project] copying bin file from ansible control server to switch

2019-05-24 Thread rajthecomputerguy
Hi team, Can you please provide me the module to copy the IOS image file to cisco switch? I used below but it prompts for password - name: COPY OVER IOS IMAGE command: "scp system-image-filename.bin {{inventory_hostname}}:/system-image-filename.bin" - name: SET BOOT SYSTEM FLASH

Re: [ansible-project] Is Jump host advisable ?

2019-05-16 Thread rajthecomputerguy
-- > *From:* ansible...@googlegroups.com on behalf of > rajthecomputerguy > > *Sent:* Thursday, May 16, 2019 2:57 AM > *To:* Ansible Project > *Subject:* [ansible-project] Is Jump host advisable ? > > Hi Team, > > Which is one is followed as best practice in A

[ansible-project] Is Jump host advisable ?

2019-05-16 Thread rajthecomputerguy
Hi Team, Which is one is followed as best practice in Ansible? Using jump server to connect devices ? or having direct access to devices. thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

[ansible-project] Cisco Switch IOS upgrade playbook

2019-05-16 Thread rajthecomputerguy
Hi Team, Can anyone share me the IOS upgrade playbook for cisco switches. thanks, -- 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

Re: [ansible-project] Suggestion for deploying Ansible

2019-05-15 Thread rajthecomputerguy
Thanks for your Response On Wednesday, May 15, 2019 at 4:14:35 PM UTC+5:30, Jonathan Lozada De La Matta wrote: > > Deploy it in a location that can reach all the devices needed. > > On Wed, May 15, 2019 at 5:12 AM rajthecomputerguy > wrote: > >> Hi Team, >> >>

[ansible-project] Suggestion for deploying Ansible

2019-05-15 Thread rajthecomputerguy
Hi Team, Is it good to deploy Ansible tower(Network Automation) in DMZ ? if yes what are reasons? thanks, Pushparaj -- 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

Re: [ansible-project] Integration Ansible tower with Cisco Identity Services Engine(ISE)

2019-05-09 Thread rajthecomputerguy
groups.com on behalf of > rajthecomputerguy > > *Sent:* Thursday, May 9, 2019 7:46 AM > *To:* Ansible Project > *Subject:* [ansible-project] Integration Ansible tower with Cisco > Identity Services Engine(ISE) > > Hi Team, > > How to integrate Ansible tower with Cisco Ide

[ansible-project] Re: Integration Ansible tower with Cisco Identity Services Engine(ISE)

2019-05-09 Thread rajthecomputerguy
On Thursday, May 9, 2019 at 5:16:41 PM UTC+5:30, rajthecomputerguy wrote: > > Hi Team, > > How to integrate Ansible tower with Cisco Identity Services Engine(ISE). > > thanks, > Pushparaj > -- You received this message because you are subscribed to the Google Groups

  1   2   >