8
On Wed, 2 Jun, 2021, 9:00 am prasanna kumar, wrote:
> There are log plugins specifically for these. You can refer logcallback
> plugin in ansible.
>
> Create a copy of it and customize it as per your need.
>
>
> On Wed, Jun 2, 2021, 1:37 AM Vikram S wrote:
>
>> I have several tasks in a
Might be worth trying
https://awsbloglink.wordpress.com/2018/11/11/how-to-control-the-output-of-ansible-debug-with-verbose/
Also, there is an existing issue with this
https://github.com/ansible/ansible/issues/24215
On Wed, Jun 2, 2021 at 12:10 PM pradnya waghmare
wrote:
> 8
>
> On Wed, 2 Jun,
Hello,
We manage an on-premise platform completely via Ansible playbooks.
I'm currently investigating how to best integrate these runs in a CICD
setup on Azure DevOps.
Our security team is also asking to manage the SSH keys via Azure DevOps'
system of managed service connections. Azure
May be u can use with_items module.
On Wed, Jun 2, 2021, 17:52 R.B. Kumar wrote:
> Hello All - Some basics. I have 50+ Cisco Routers. I am running a ansible
> script to execute "show version" command. The script works well. I am
> copying the output to a file
>
> But every host creates one
Thank you. Let me try and let you know
On Wednesday, June 2, 2021 at 6:01:50 PM UTC+5:30 navee...@gmail.com wrote:
> May be u can use with_items module.
>
> On Wed, Jun 2, 2021, 17:52 R.B. Kumar wrote:
>
>> Hello All - Some basics. I have 50+ Cisco Routers. I am running a ansible
>> script to
Hello All - Some basics. I have 50+ Cisco Routers. I am running a ansible
script to execute "show version" command. The script works well. I am
copying the output to a file
But every host creates one file so, i end up having 50+ files with the
output. Can i write the output of all the host
Hi pushparaj,
The problem with this approach is that it is hiding even the normal output
(success/fail, etc) of each task when i don't use -. So it is hiding
output of each task that i would otherwise need to see. Thanks for replying
though.
Regards,
Vikram
On Wednesday, 2 June, 2021 at
Hi,
I tried this but it doesn't exactly meet my requirements. I need to run
only a single task with highest level verbosity. If i were to specify
verbosity level as 4 as given in the article and if i were to run -,
then all other tasks which have lower verbosity will also show debug info,
I have written below script that will end the playbook if IOS version
running on router satisfies below conditions:
1.
Version is greater than or is 16.12.02 AND
2.
Version is NOT certain versions like 16.12.05 OR 16.09.06 OR 17.03.02',
etc as mentioned below.
On Wednesday 02 June 2021 at 21:31:21, Vikram S wrote:
> I have written below script that will end the playbook if IOS version
> running on router satisfies below conditions:
>
>1. Version is greater than or is 16.12.02 AND
>2. Version is NOT certain versions like 16.12.05 OR 16.09.06 OR
Hi This worked for me.
name: Name servers
ios_command:
authorize: yes
provider: "{{ cli }}"
commands:
- show ip name-servers
- show run | in ntp
- show run | in host
- show run | in address ipv4
register:
Hi D
Ran this code and got the error.
- name: TACACS
ios_command:
authorize: yes
provider: "{{ cli }}"
commands:
- show run | in address ipv4
- show ver
register: print_output
- debug:
Hi Antony,
My condition to check is:
1.
Version is greater than or is 16.12.02 (i made a typo by entering
16.12.06 instead fo 16.12.02 for 1st condition) AND
2.
Version is NOT certain versions like 16.12.05 OR 16.09.06 OR 17.03.02',
etc as mentioned below.
or we add this https://github.com/ansible/ansible/pull/74888
--
--
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
Hi,
Anyone has a sample project or guidance on using the EXPECT ansible module
when dealing with a CLI navigation menu that uses arrow keys (up / down /
left / right)?
Regards,
Wilber
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To
Have you tried Ansibledb? It seems a waste to only get one piece of
information.
AnsibleDB can take in the output of the setup module and store it so you
can just run curl commands against the API and pull out the version you're
after from all your cisco routers at once. in your case, you'd
16 matches
Mail list logo