Re: [ansible-project] Re: Ansible + Arista + Netbox

2023-03-23 Thread Heinz Meier
I am doing this with Cisco. If you understood what you are doing, it is quite simple. Use the netbox inventory pluging. Be sure to gather the interface information (interfaces: true). Then use the arista.eos.eos_interfaces module and loop over all interfaces. (or arista.eos.eos_l2_interfaces). Pl

Re: [ansible-project] Re: netbox_interface module: Failed to establish connection to Netbox API"

2022-07-21 Thread Heinz Meier
Yes. But I don't remember how maulik patel schrieb am Do., 21. Juli 2022, 13:09: > did you get it resolved ? > > On Thursday, July 2, 2020 at 12:30:54 AM UTC+5:30 heinz6...@gmail.com > wrote: > >> Hi, >> >> I am quite desparate already. I want to use the netbox_interface module >> in ansible, bu

Re: [ansible-project] Upgrading 2960x

2020-04-25 Thread Heinz Meier
hi, i started to write a universal ios upgrade playbook. The meta playbook includes the playbooks for the specific model upgrades. Sorry for the lengthy post. But when I find some time I will write a better blog article. Please feel free to ask me again if you have a question regarding this playb

Re: [ansible-project] wait_for ping?

2020-02-23 Thread Heinz Meier
Am Sonntag, 23. Februar 2020 11:28:45 UTC+1 schrieb Kai Stian Olstad: > > On Sun, Feb 23, 2020 at 02:10:32AM -0800, Heinz Meier wrote: > > need to wait until a host is up and running. This host does not (yet) > offer > > ssh, so I need a simple ping. The module wait

[ansible-project] wait_for ping?

2020-02-23 Thread Heinz Meier
Hi, need to wait until a host is up and running. This host does not (yet) offer ssh, so I need a simple ping. The module wait_for only offers port tests, as far as I can see. Any ideas? Michael Schwartzkopff -- You received this message because you are subscribed to the Google Groups "Ansibl

Re: [ansible-project] import tasks depending on fact: import task name substitution possible?

2020-02-14 Thread Heinz Meier
Am Freitag, 14. Februar 2020 11:25:48 UTC+1 schrieb Stefan Hornburg (Racke): > > On 2/14/20 11:19 AM, Heinz Meier wrote: > > Hi, > > > > I want to execute a task on my minions. The problem is, that there are > different tasks depending on facts of the > > d

[ansible-project] import tasks depending on fact: import task name substitution possible?

2020-02-14 Thread Heinz Meier
Hi, I want to execute a task on my minions. The problem is, that there are different tasks depending on facts of the devices. How can ansible deal with it? Basically I want to upgrade the operating system on Cisco network components. Different network models (fact: ansible_net_model) have dif

Re: [ansible-project] Problems with ios_command and prompt '[y/n]'

2020-02-04 Thread Heinz Meier
y' vars: ansible_command_timeout: 180 Am Di., 4. Feb. 2020 um 16:27 Uhr schrieb Heinz Meier < heinz6.mei...@gmail.com>: > Still the same problem (timeout). I copied the string direct from the > switch. Any idea how to debug this in deep? > > > The full traceback is: > File

Re: [ansible-project] Problems with ios_command and prompt '[y/n]'

2020-02-04 Thread Heinz Meier
gex hence either handle special > character in prompt correctly by using escape character or remove those > characters from prompt completely. > For example: > > - name: remove old OS files > ios_command: > commands: > - command: install remove inactive >

Re: [ansible-project] Problems with ios_command and prompt '[y/n]'

2020-02-04 Thread Heinz Meier
"ssh_keyfile": null, "timeout": null, "username": null, "wait_for": null } }, "msg": "command timeout triggered, timeout value is 180 secs.\nSee the timeout setting options in the Network Debug and

[ansible-project] Problems with ios_command and prompt '[y/n]'

2020-02-04 Thread Heinz Meier
Hi, I have a problem with the ios_command and the C9200L switch when updating the IOS-XE. One step of the upgrade is On step is to remove inactive IOS versions: #install remove inactive (...) Do you want to remove the above files? [y/n] the part of the playbook looks like: --- - hosts: cisco

[ansible-project] Re: Error in ios_vlans module

2019-11-06 Thread Heinz Meier
bug report opened in github. -- 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 view this discussion on the web

Re: [ansible-project] Error in ios_vlans module

2019-11-06 Thread Heinz Meier
The playbook - hosts: ... tasks: - name: Delete all VLANs ios_vlan: vlan_id: 100 state: absent works smooth. -- 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

Re: [ansible-project] Error in ios_vlans module

2019-11-06 Thread Heinz Meier
fresh installation via pip3 on a CentOS8. $ ansible --version ansible 2.9.0 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/misch/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.6/site-p

[ansible-project] Error in ios_vlans module

2019-11-06 Thread Heinz Meier
Hi, I have a simple playbook: - name: Delete all VLANs ios_vlans: state: deleted when I run it, it throws an error: The full traceback is: Traceback (most recent call last): File "/home/misch/.ansible/tmp/ansible-local-10481lkaxtjzi/ansible-tmp-1573036107.9861128-169243767125207/