Page MenuHomeVyOS Platform

vyos.vyos.vyos_user module fails when looping over it
Open, NormalPublicBUG

Description

When looping over the vyos.vyos.vyos_user module to create multiple accounts then the task fails after the first users with msg: 'Task failed: ''match''' for each item after the first since the loop seems to not clean itself up for each next item. For an example when running:

- name: Configuring accounts for...
  vyos.vyos.vyos_user:
    configured_password: "{{ item.password }}"
    name: "{{ item.username }}"
    state: present
  register: created_account
  loop:
    - username: "admin"
      password: "admin_password"

    - username: "user1"
      password: "user1_password"

Details

Version
VyOS version 2026.03, Ansible collection everything after 5.0.0.
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)