I'm starting to work on junos automation with Ansible.
Here are some configuration informations:
python version = 3.8.10
As I am starting to understand step by step the way it works, I am trying to use the Ad-hoc commands directly on my labs equipments, not through playbooks.
But I am getting some troubles to launch those commands using some of junos modules such as "junos_interfaces", whereas it is really well working with "junos_user" module for example.
I think I have problems with the syntax to be used with the "junos_interfaces" module as it has suboptions in the arguments:
- name: "Replaces device configuration of listed interfaces with provided configuration"
- name: ge-0/0/2
description: 'Configured by Ansible-2'
I tried so many commands with no success, such as the following one (sw_core_lab_qfx5100 is my lab equipment) :ansible sw_core_lab_qfx5100 -m junos_interfaces -a 'config="name=ge-0/0/2 description=Configured by Ansible-2" state="replaced"' -u test_user --ask-pass --connection local
Can someone please help me to get the correct syntax to be used to use this module correctly?
Thank you in advance!