vyos / vyos.vyos

Ansible Network Collection for VyOS
GNU General Public License v3.0
69 stars 62 forks source link

set commands not applied #319

Open ita-dips opened 1 year ago

ita-dips commented 1 year ago
SUMMARY

Using module vyos_config the set commands are not executed.

ISSUE TYPE
COMPONENT NAME

module vyos_config

ANSIBLE VERSION
  config file = /var/lib/playbooks/vyos/ansible.cfg
  configured module search path = ['/var/lib/playbooks/generic/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /var/lib/playbooks/ansible_galaxy/collections
  executable location = /usr/bin/ansible
  python version = 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] (/usr/bin/python3)
  jinja version = 3.0.3
  libyaml = True
COLLECTION VERSION
vyos.vyos               4.0.2
CONFIGURATION
OS / ENVIRONMENT

Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy

STEPS TO REPRODUCE

Using this task:

the firewall configuration is not set on remote device (vyos 1.3.2). But if I manually set the configuration on device, then the vyos_config is able to modify the configuration.

ansible-playbook -k ./remore-vyos.yaml
SSH password:

PLAY [Set fw rulez] ********************************************************************************************************************

TASK [Gathering Facts] *****************************************************************************************************************
[WARNING]: ansible-pylibssh not installed, falling back to paramiko
ok: [idc21-ar11-prod]

TASK [configure the remote device] *****************************************************************************************************
[WARNING]: To ensure idempotency and correct diff the input configuration lines should be similar to how they appear if present in the
running configuration on device
changed: [idc21-ar11-prod]

PLAY RECAP *****************************************************************************************************************************
idc21-ar11-prod            : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
EXPECTED RESULTS

Add the log-martian conf.

ACTUAL RESULTS

No martian-conf is present on remote device.