Hello! I can offer some advice. In my findings, often there are no vendor
canned, provided modules so you have to use the netcommon.cli module which
works just as well.
I have successfully deployed playbooks for cisco ios, cisco asa, dell, wlcs
and nxos. Here is one playbook I use for my asa
Hi Bikram,
You could try splitting the tasks into two seperate tasks and adding a
pause. see below.
- name: Install new IOS image hosts: cisco_switches tasks: - name: Add IOS
image ios_command: commands: - command: install add file
flash:cat9k_iosxe.17.09.04a.SPA.bin
activate commit prompt
Here is how I do it. I think this is what you want.
The way I did it is using a SSH keyring. In the ansible.cfg
private_key_file = /etc/ansible/id_rsa_ansible
Next share the public key out to all clients, then on the ansible server I
created a shell script that invokes
#!/bin/env bash
ssh-ag
would you mind sharing the whole, newly updated playbook? thank you!
On Monday, November 6, 2023 at 2:58:31 PM UTC-5 Vladimir Botka wrote:
> On Fri, 3 Nov 2023 08:40:19 -0700 (PDT)
> Dimitri Yioulos wrote:
>
> > --- PING REPORT ---
> > {% for pr in ping_result.results %}
> > {{ pr.stdout_lines
cool I see thank you! but how do you avoid the special characters in the
file name? like so.
' "2023_07_26_14_34_22.txt" '
---
- name: date format filename
hosts: localhost
gather_facts: 0
tasks:
- name: create my file
ansible.builtin.file:
path: /tmp/"{{ now(fmt="%Y_
I had a very similar problem that was resolved by creating a file called
config under the users .ssh directory. this file contains
Host k200 hoitsw0* hosw*0* hoswe0* mislxsrv stage instore central zzswm01
sysadm rvswm0* clswm0* cmswa0* cmswm0* crsw* gwswm*
Ciphers +aes256-cbc,3des-cbc
K
Hello!
Shouln't I see my pip pointing to the same python version as what ansibile
is reporting, python3.9? Or why is pip9.0.3 pointing to python3.6 and not
3.9?
[root@ho-lx-ansible01 dnf]# python3 -m pip -V
*pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)*
[root@ho-lx-ansible01
r: r...@ho-lx-ansible..com
host: internal-smtp.x.com
subtype: html
to: 'dbsm...@mx.com'
subject: test
body: "{{ email_body }}"
...
On Friday, June 23, 2023 at 1:32:34 PM UTC-4 Dick Visser wrote:
> On Fri, 23 Jun 2023 at 18:40, dbs34
Hello!
I have tried various ways to get my output to email in a readable format,
with newlines, but ansible strips them off everytime. Its just a few shell
commands i am testing. I've tried a for loop, with items, replace, etc.
My email output is all on one-line like so:
"- ' 12:23:27 up 64
Hello!
I have tried various ways to get my output to email in a readable format,
with newlines, but ansible strips them off everytime. Its just a few shell
commands i am testing. I've tried a for loop, with items, replace, etc.
My email output is all on one-line like so:
"- ' 12:23:27 up 64
Hi All!
Can the passowrd for my actual vault file as
shown /etc/ansible/group_vars/.vltfile.yml be encrypted? Will ansible auto
decrypt it? My client vault file which holds the actual user-names and
password is encryted but I never found or disceoverd it your password vault
file can be from
Has anyone had issues with their playbooks running after upgrading from
2.13 to 2.14 of ansible? I kept getting run error from my cisco.*
playbooks. My linux playbooks worked fine however. I backed out the
upgrade and now my cisco.* playbooks work again
Is there a specific upgrade process to
Has anyone upgraded to 2.14 and had issues running their playbooks,
specifically the cisco.* playbooks? I kept getting this error during my
runs.
The full traceback is:
File
"/root/.ansible/collections/ansible_collections/ansible/netcommon/plugins/modules/cli_command.py",
line 170, in main
I was able to get past this error by setting
ansible_network_terminal_errors=ignore in my hosts file
By default its set to fatal.
[ASA:vars]
ansible_network_terminal_errors=ignore
On Tuesday, May 2, 2023 at 5:03:44 PM UTC-4 dbs34 wrote:
> I ran some more tests and it does not matter w
2:48:50 PM UTC-4 dbs34 wrote:
> Hello All!
>
> I have been tasked with backing up our network devices. I am not a
> network guy but I know ansible and linux. I keep getting this error and
> have not found much on the web for help. *The error is "unable to disable
> te
Hello All!
I have been tasked with backing up our network devices. I am not a network
guy but I know ansible and linux. I keep getting this error and have not
found much on the web for help. *The error is "unable to disable terminal
pager." *
PLAY [Backup ASA Configuration]
***
16 matches
Mail list logo