name: configure the remote device
vyos.vyos.vyos_config:
lines:
set firewall log-martians enable
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
SUMMARY
Using module vyos_config the set commands are not executed.
ISSUE TYPE
COMPONENT NAME
module vyos_config
ANSIBLE VERSION
COLLECTION VERSION
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.
EXPECTED RESULTS
Add the log-martian conf.
ACTUAL RESULTS
No martian-conf is present on remote device.