So I'm running into an error that is related to a role, but I dont think
it's the roll directly. It seems to error out when trying to set a variable
from the 'ansible_os_family' fact. I am running this through a jump host
using the 'proxyJump' ssh_config setting. I'm on ansible v4, but the same
Is this an option (using a list of messages), or are you looking for
something different?
- name: Print Upgrade Information
debug:
msg:
- "Currently installed version: {{ current_version }} booting from {{
current_boot_loc[:-2] }}"
- "New Image {{ new_v13_version }} + {{ new_v13
Thank you Vladimir. I will try in to add in my script and try. Thanks again
a lot
On Friday, May 28, 2021 at 9:14:35 PM UTC+5:30 vbo...@gmail.com wrote:
> On Fri, 28 May 2021 08:21:43 -0700 (PDT)
> "R.B. Kumar" wrote:
>
> > ... where the lines you shown here will fit in my script. My
> > scrip
On Fri, 28 May 2021 08:21:43 -0700 (PDT)
"R.B. Kumar" wrote:
> ... where the lines you shown here will fit in my script. My
> script is below
>
> - name: get_ip
> ios_command:
> provider: "{{ cli }}"
> commands: "show ip interface brief {{ item }}"
> register: va
Hi,
You truly rock count filter helped. Below script solves my issue.
tasks:
- name: GATHER SHOW VERSION
ios_command:
commands: "show ip eigrp nei"
register: show_eigrp
- debug:
msg: "{{ show_eigrp.stdout_lines[0] | count }}"
I will compare the command
Thank you Vladimir - Much appreciated your response. Unfortunately, I am a
ansible noob and trying to learn the things for a realtime network
requirements
If you can help me where the lines you shown here will fit in my script. My
script is below
- name: get_ip
ios_command:
p
I identified a bug:
https://github.com/ansible-collections/community.aws/issues/504
and want to help test a PR fix to get the bug fixed.
I don't know how to do this, but I'm wondering if the following is correct;
I had to kind of piece this together by reading various ansible docs about
collect
For example
- set_fact:
interfaces: "{{ interfaces|default({})|
combine({_arr.0: _arr.1}) }}"
loop: "{{ var_ip_addr.results|
json_query('[].stdout_lines') }}"
vars:
_arr: "{{ item.0.1.split() }}"
should give
interfaces:
All - I realised it is not possible or good idea to use {{ item }} in
register. So i modified the code as below. So, now for all the three
interface (GigabitEthernet 0/0/0,
Loopback 0) are captured in the same output and registered in *var_ip_addr*
The challenge now is, i have to grep IP address
Count
On Fri, 28 May 2021 at 10:08, Vikram S wrote:
> Hi,
>
> I am wondering what module/ filter to use for comparing number of entries?
>
> Thanks,
> Vikram
>
> On Friday, 28 May, 2021 at 3:33:30 am UTC+5:30 dick@geant.org wrote:
>
>> If it is about the number of entries then you should com
Hello Everyone again - Trying to get the IP address of the multiple
Interfaces from a Cisco Router and register it. Using {{ item }} loop
method to feed the Multiple Interfaces (eg: GigabitEthernet 0/0/0) in the
command.
How to get the unique variables for each interface? I will pick those
var
Hi guys,
In my company, we're using the win_chocolatey module to install several
Windows programs as part of the CI process.
Every now and then, a Chocolatey package gets updated while the checksum
does not, resulting in the checksums mismatch, the win_chocolatey failing
and then failing our ent
Call me clueless but from
"stdout_lines": [
[
"Interface IP-Address OK?
Method StatusProtocol",
"GigabitEthernet0/0/0 42.151.182.42 YES
DHCP upup"
Hi Jatin / All Thank you
solved the problem. The issue is by using {{ item }} the output format is
different. By using hierarchy I am able to get the IP address greped.
Thanks again to all
On Friday, May 28, 2021 at 2:29:01 PM UTC+5:30 R.B. Kumar wrote:
> Thank you. But gigabit and Gigbit c
Thank you. But gigabit and Gigbit case difference is not a matter here..
All i am trying to do is, using {{ item }} i a getting a output from a
Cisco Router and want to grep only a IP address value in the in output and
store it in a variable. so that i can use the variable in the script
regards
I would suggest there is a meaningful difference between "gigabitEthernet0/0/0"
and "Gigabitethernet 0/0/0".
Antony.
--
It is also possible that putting the birds in a laboratory setting
inadvertently renders them relatively incompetent.
- Daniel C Dennett
Pls see the difference in stdout outputs in both scripts and in failing
script. As you are using loop so register output becomes bit changed so you
will have to use your logic as per loop output.
You can call me. No. shared seperately.
On Fri, May 28, 2021, 14:10 R.B. Kumar wrote:
> Hello - The
Any help in this issue will be highly appreciable.
Regards,
Jayan
On Thu, May 27, 2021 at 9:41 PM Jayan Anirudhan wrote:
> Hi Dick,
>
> Thanks a lot for the reply. I added the entry to the ansible.cfg file and
> found the issue persists. Message display is still the same as mentioned
> below.
>
Hello - The difference between working and not working script is given
below. Need to find out why we get "VARIABLE IS NOT DEFINED" in script-1
*NOT WORKING SCRIPT* *(SCRIPT-1)*
- name: get_ip
ios_command:
provider: "{{ cli }}"
commands: "show ip interface brief *{{ item }
So would it work if you just use stdout or is split required?
If split is required, pls show me the stdout output and what you need from
this value?
On Fri, May 28, 2021, 13:48 R.B. Kumar wrote:
> Thank you.. Just by printing stdout, it shows all the data perfectly. But
> when i try to grep it
Hello - I attached the output of debug when i used {{ item }}. That is show
ip interface brief {{ item }}. I am trying to capture the IP address in the
output and reuse it in the script.
TASK [debug]
Thank you.. Just by printing stdout, it shows all the data perfectly. But
when i try to grep it using split, it is showing "VARIABLE IS NOT FOUND"
TASK [debug]
***
ok: [labrtr2.allmerica.
Please try to print stdout value first and see what does it contain.
Stdout_lines may have your data.
On Fri, May 28, 2021, 13:38 R.B. Kumar wrote:
> Hello All - I am using Ansible version 2.7.18
>
> I am trying this code to get IP address of the Cisco Router interface.
> When i use {{ item }},
Hi,
I am wondering what module/ filter to use for comparing number of entries?
Thanks,
Vikram
On Friday, 28 May, 2021 at 3:33:30 am UTC+5:30 dick@geant.org wrote:
> If it is about the number of entries then you should compare that before
> and after
>
> On Thu, 27 May 2021 at 23:39, Vikra
Hello All - I am using Ansible version 2.7.18
I am trying this code to get IP address of the Cisco Router interface. When
i use {{ item }}, the IP address is not captured. Where as if i use a
static value (eg: show ip interface brief gig 0/0/0), the IP address is
captured and i can use it in th
25 matches
Mail list logo