diff options
Diffstat (limited to 'tests')
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/integration/targets/vyos_hostname/tests/cli/_populate_config.yaml b/tests/integration/targets/vyos_hostname/tests/cli/_populate_config.yaml index 4d332896..b8cb5f46 100644 --- a/tests/integration/targets/vyos_hostname/tests/cli/_populate_config.yaml +++ b/tests/integration/targets/vyos_hostname/tests/cli/_populate_config.yaml @@ -2,7 +2,7 @@ - name: setup vyos.vyos.vyos_config: lines: - - set system host-name 'vyos' + - set system host-name 'vyosuser' ignore_errors: true vars: ansible_connection: ansible.netcommon.network_cli diff --git a/tests/integration/targets/vyos_hostname/tests/cli/_remove_config.yaml b/tests/integration/targets/vyos_hostname/tests/cli/_remove_config.yaml index 229c79c8..9850e2f3 100644 --- a/tests/integration/targets/vyos_hostname/tests/cli/_remove_config.yaml +++ b/tests/integration/targets/vyos_hostname/tests/cli/_remove_config.yaml @@ -1,8 +1,8 @@ --- -- name: Remove pre-existing hostname config - vyos.vyos.vyos_hostname: - config: - state: deleted +- name: Delete Hostname vyosuser + vyos.vyos.vyos_config: + lines: + - delete system host-name 'vyosuser' ignore_errors: true vars: ansible_connection: ansible.netcommon.network_cli diff --git a/tests/integration/targets/vyos_hostname/vars/main.yaml b/tests/integration/targets/vyos_hostname/vars/main.yaml index a6b49866..615da43b 100644 --- a/tests/integration/targets/vyos_hostname/vars/main.yaml +++ b/tests/integration/targets/vyos_hostname/vars/main.yaml @@ -8,5 +8,5 @@ merged: deleted: commands: - - delete system host-name vyos + - delete system host-name vyosuser after: {} |