mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove provider cli for vyos tests (#30275)
Transport is cli by default, and we set user/passwords on group_vars.
This commit is contained in:
parent
caafc8e591
commit
4a3a8ac616
17 changed files with 0 additions and 70 deletions
|
@ -6,13 +6,11 @@
|
||||||
Junk pre-login banner
|
Junk pre-login banner
|
||||||
over multiple lines
|
over multiple lines
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: remove pre-login
|
- name: remove pre-login
|
||||||
vyos_banner:
|
vyos_banner:
|
||||||
banner: pre-login
|
banner: pre-login
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
|
@ -27,7 +25,6 @@
|
||||||
vyos_banner:
|
vyos_banner:
|
||||||
banner: pre-login
|
banner: pre-login
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
vyos_banner:
|
vyos_banner:
|
||||||
banner: post-login
|
banner: post-login
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: Set post-login
|
- name: Set post-login
|
||||||
vyos_banner:
|
vyos_banner:
|
||||||
|
@ -13,7 +12,6 @@
|
||||||
that has a multiline
|
that has a multiline
|
||||||
string
|
string
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
|
@ -33,7 +31,6 @@
|
||||||
that has a multiline
|
that has a multiline
|
||||||
string
|
string
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
vyos_banner:
|
vyos_banner:
|
||||||
banner: pre-login
|
banner: pre-login
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: Set pre-login
|
- name: Set pre-login
|
||||||
vyos_banner:
|
vyos_banner:
|
||||||
|
@ -13,7 +12,6 @@
|
||||||
that has a multiline
|
that has a multiline
|
||||||
string
|
string
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
|
@ -33,7 +31,6 @@
|
||||||
that has a multiline
|
that has a multiline
|
||||||
string
|
string
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
- show interfaces
|
- show interfaces
|
||||||
wait_for:
|
wait_for:
|
||||||
- result[0] is 'VyOS'
|
- result[0] is 'VyOS'
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
wait_for:
|
wait_for:
|
||||||
- result[0] contains VyOS
|
- result[0] contains VyOS
|
||||||
- result[1] contains eth0
|
- result[1] contains eth0
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
- name: run invalid command
|
- name: run invalid command
|
||||||
vyos_command:
|
vyos_command:
|
||||||
commands: show foo
|
commands: show foo
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
|
@ -15,7 +14,6 @@
|
||||||
commands:
|
commands:
|
||||||
- show version
|
- show version
|
||||||
- show foo
|
- show foo
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
- name: get output for single command
|
- name: get output for single command
|
||||||
vyos_command:
|
vyos_command:
|
||||||
commands: show version
|
commands: show version
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -18,7 +17,6 @@
|
||||||
commands:
|
commands:
|
||||||
- show version
|
- show version
|
||||||
- show interfaces
|
- show interfaces
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -35,7 +33,6 @@
|
||||||
- show hardware cpu detail
|
- show hardware cpu detail
|
||||||
- show hardware mem
|
- show hardware mem
|
||||||
- show license
|
- show license
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
- show version
|
- show version
|
||||||
wait_for:
|
wait_for:
|
||||||
- result[0] contains bad_value_string
|
- result[0] contains bad_value_string
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
|
|
|
@ -4,12 +4,10 @@
|
||||||
- name: setup
|
- name: setup
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: set interfaces loopback lo description test
|
lines: set interfaces loopback lo description test
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: configure config_check config command
|
- name: configure config_check config command
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: delete interfaces loopback lo
|
lines: delete interfaces loopback lo
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -19,7 +17,6 @@
|
||||||
- name: check config_check config command idempontent
|
- name: check config_check config command idempontent
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: delete interfaces loopback lo
|
lines: delete interfaces loopback lo
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -4,14 +4,12 @@
|
||||||
- name: setup
|
- name: setup
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: set system host-name {{ inventory_hostname_short }}
|
lines: set system host-name {{ inventory_hostname_short }}
|
||||||
provider: "{{ cli }}"
|
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
- name: configure using comment
|
- name: configure using comment
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: set system host-name foo
|
lines: set system host-name foo
|
||||||
comment: this is a test
|
comment: this is a test
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -22,7 +20,6 @@
|
||||||
- name: collect system commits
|
- name: collect system commits
|
||||||
vyos_command:
|
vyos_command:
|
||||||
commands: show system commit
|
commands: show system commit
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -32,7 +29,6 @@
|
||||||
- name: teardown
|
- name: teardown
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: set system host-name {{ inventory_hostname_short }}
|
lines: set system host-name {{ inventory_hostname_short }}
|
||||||
provider: "{{ cli }}"
|
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
- debug: msg="END cli/comment.yaml"
|
- debug: msg="END cli/comment.yaml"
|
||||||
|
|
|
@ -4,13 +4,11 @@
|
||||||
- name: setup
|
- name: setup
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: set system host-name {{ inventory_hostname_short }}
|
lines: set system host-name {{ inventory_hostname_short }}
|
||||||
provider: "{{ cli }}"
|
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
- name: configure hostaname and save
|
- name: configure hostaname and save
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: set system host-name foo
|
lines: set system host-name foo
|
||||||
provider: "{{ cli }}"
|
|
||||||
save: true
|
save: true
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
@ -22,7 +20,6 @@
|
||||||
- name: configure hostaname and don't save
|
- name: configure hostaname and don't save
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: set system host-name bar
|
lines: set system host-name bar
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -33,7 +30,6 @@
|
||||||
- name: save config
|
- name: save config
|
||||||
vyos_config:
|
vyos_config:
|
||||||
save: true
|
save: true
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -43,7 +39,6 @@
|
||||||
- name: save config again
|
- name: save config again
|
||||||
vyos_config:
|
vyos_config:
|
||||||
save: true
|
save: true
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -53,7 +48,6 @@
|
||||||
- name: teardown
|
- name: teardown
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: set system host-name {{ inventory_hostname_short }}
|
lines: set system host-name {{ inventory_hostname_short }}
|
||||||
provider: "{{ cli }}"
|
|
||||||
match: none
|
match: none
|
||||||
save: true
|
save: true
|
||||||
|
|
||||||
|
|
|
@ -4,13 +4,11 @@
|
||||||
- name: setup
|
- name: setup
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: set system host-name {{ inventory_hostname_short }}
|
lines: set system host-name {{ inventory_hostname_short }}
|
||||||
provider: "{{ cli }}"
|
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
- name: configure simple config command
|
- name: configure simple config command
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: set system host-name foo
|
lines: set system host-name foo
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -21,7 +19,6 @@
|
||||||
- name: check simple config command idempontent
|
- name: check simple config command idempontent
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: set system host-name foo
|
lines: set system host-name foo
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -31,7 +28,6 @@
|
||||||
- name: teardown
|
- name: teardown
|
||||||
vyos_config:
|
vyos_config:
|
||||||
lines: set system host-name {{ inventory_hostname_short }}
|
lines: set system host-name {{ inventory_hostname_short }}
|
||||||
provider: "{{ cli }}"
|
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
- debug: msg="END cli/simple.yaml"
|
- debug: msg="END cli/simple.yaml"
|
||||||
|
|
|
@ -12,14 +12,12 @@
|
||||||
name: eth1
|
name: eth1
|
||||||
enabled: True
|
enabled: True
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: Check intent arguments
|
- name: Check intent arguments
|
||||||
vyos_interface:
|
vyos_interface:
|
||||||
name: eth1
|
name: eth1
|
||||||
state: up
|
state: up
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -31,7 +29,6 @@
|
||||||
name: eth0
|
name: eth0
|
||||||
neighbors:
|
neighbors:
|
||||||
- port: eth0
|
- port: eth0
|
||||||
provider: "{{ cli }}"
|
|
||||||
when: "'virtio_net' not in lsmod_out.stdout[0]"
|
when: "'virtio_net' not in lsmod_out.stdout[0]"
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
@ -44,7 +41,6 @@
|
||||||
vyos_interface:
|
vyos_interface:
|
||||||
name: eth1
|
name: eth1
|
||||||
state: down
|
state: down
|
||||||
provider: "{{ cli }}"
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
@ -59,7 +55,6 @@
|
||||||
neighbors:
|
neighbors:
|
||||||
- port: dummy_port
|
- port: dummy_port
|
||||||
host: dummy_host
|
host: dummy_host
|
||||||
provider: "{{ cli }}"
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: "'virtio_net' not in lsmod_out.stdout[0]"
|
when: "'virtio_net' not in lsmod_out.stdout[0]"
|
||||||
register: result
|
register: result
|
||||||
|
@ -76,7 +71,6 @@
|
||||||
name: eth1
|
name: eth1
|
||||||
enabled: False
|
enabled: False
|
||||||
state: down
|
state: down
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -88,7 +82,6 @@
|
||||||
name: eth1
|
name: eth1
|
||||||
enabled: False
|
enabled: False
|
||||||
state: up
|
state: up
|
||||||
provider: "{{ cli }}"
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
@ -103,7 +96,6 @@
|
||||||
- name: eth1
|
- name: eth1
|
||||||
enabled: True
|
enabled: True
|
||||||
state: up
|
state: up
|
||||||
provider: "{{ cli }}"
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
@ -117,7 +109,6 @@
|
||||||
- name: eth0
|
- name: eth0
|
||||||
neighbors:
|
neighbors:
|
||||||
- port: eth0
|
- port: eth0
|
||||||
provider: "{{ cli }}"
|
|
||||||
when: "'virtio_net' not in lsmod_out.stdout[0]"
|
when: "'virtio_net' not in lsmod_out.stdout[0]"
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
@ -134,7 +125,6 @@
|
||||||
- port: eth0
|
- port: eth0
|
||||||
- port: dummy_port
|
- port: dummy_port
|
||||||
host: dummy_host
|
host: dummy_host
|
||||||
provider: "{{ cli }}"
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: "'virtio_net' not in lsmod_out.stdout[0]"
|
when: "'virtio_net' not in lsmod_out.stdout[0]"
|
||||||
register: result
|
register: result
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
facility: all
|
facility: all
|
||||||
level: info
|
level: info
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -19,7 +18,6 @@
|
||||||
facility: all
|
facility: all
|
||||||
level: info
|
level: info
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -33,7 +31,6 @@
|
||||||
facility: all
|
facility: all
|
||||||
level: notice
|
level: notice
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -48,7 +45,6 @@
|
||||||
facility: all
|
facility: all
|
||||||
level: notice
|
level: notice
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -62,7 +58,6 @@
|
||||||
facility: all
|
facility: all
|
||||||
level: notice
|
level: notice
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -77,7 +72,6 @@
|
||||||
facility: all
|
facility: all
|
||||||
level: notice
|
level: notice
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -90,7 +84,6 @@
|
||||||
- { dest: file, name: test1, facility: all, level: info }
|
- { dest: file, name: test1, facility: all, level: info }
|
||||||
- { dest: file, name: test2, facility: news, level: debug }
|
- { dest: file, name: test2, facility: news, level: debug }
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -106,7 +99,6 @@
|
||||||
- { dest: file, name: test1, facility: all, level: info, state: absent }
|
- { dest: file, name: test1, facility: all, level: info, state: absent }
|
||||||
- { dest: console, facility: daemon, level: warning }
|
- { dest: console, facility: daemon, level: warning }
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -122,7 +114,6 @@
|
||||||
- { dest: console, facility: daemon, level: warning }
|
- { dest: console, facility: daemon, level: warning }
|
||||||
- { dest: file, name: test2, facility: news, level: debug }
|
- { dest: file, name: test2, facility: news, level: debug }
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
prefix: 172.24.0.0/24
|
prefix: 172.24.0.0/24
|
||||||
next_hop: 192.168.42.64
|
next_hop: 192.168.42.64
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -18,7 +17,6 @@
|
||||||
mask: 24
|
mask: 24
|
||||||
next_hop: 192.168.42.64
|
next_hop: 192.168.42.64
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -31,7 +29,6 @@
|
||||||
next_hop: 192.168.42.64
|
next_hop: 192.168.42.64
|
||||||
admin_distance: 1
|
admin_distance: 1
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -46,7 +43,6 @@
|
||||||
next_hop: 192.168.42.64
|
next_hop: 192.168.42.64
|
||||||
admin_distance: 1
|
admin_distance: 1
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -59,7 +55,6 @@
|
||||||
next_hop: 192.168.42.64
|
next_hop: 192.168.42.64
|
||||||
admin_distance: 1
|
admin_distance: 1
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -73,7 +68,6 @@
|
||||||
next_hop: 192.168.42.64
|
next_hop: 192.168.42.64
|
||||||
admin_distance: 1
|
admin_distance: 1
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -86,7 +80,6 @@
|
||||||
- { prefix: 172.24.1.0/24, next_hop: 192.168.42.64 }
|
- { prefix: 172.24.1.0/24, next_hop: 192.168.42.64 }
|
||||||
- { prefix: 172.24.2.0, mask: 24, next_hop: 192.168.42.64 }
|
- { prefix: 172.24.2.0, mask: 24, next_hop: 192.168.42.64 }
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -102,7 +95,6 @@
|
||||||
- { prefix: 172.24.2.0/24, next_hop: 192.168.42.64, state: absent }
|
- { prefix: 172.24.2.0/24, next_hop: 192.168.42.64, state: absent }
|
||||||
- { prefix: 172.24.3.0/24, next_hop: 192.168.42.64 }
|
- { prefix: 172.24.3.0/24, next_hop: 192.168.42.64 }
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -117,7 +109,6 @@
|
||||||
- { prefix: 172.24.1.0/24, next_hop: 192.168.42.64 }
|
- { prefix: 172.24.1.0/24, next_hop: 192.168.42.64 }
|
||||||
- { prefix: 172.24.3.0/24, next_hop: 192.168.42.64 }
|
- { prefix: 172.24.3.0/24, next_hop: 192.168.42.64 }
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
name: auth_user
|
name: auth_user
|
||||||
role: admin
|
role: admin
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
configured_password: pass123
|
configured_password: pass123
|
||||||
|
|
||||||
- name: test login
|
- name: test login
|
||||||
|
@ -32,5 +31,4 @@
|
||||||
vyos_user:
|
vyos_user:
|
||||||
name: auth_user
|
name: auth_user
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
|
@ -5,14 +5,12 @@
|
||||||
- delete system login user ansibletest1
|
- delete system login user ansibletest1
|
||||||
- delete system login user ansibletest2
|
- delete system login user ansibletest2
|
||||||
- delete system login user ansibletest3
|
- delete system login user ansibletest3
|
||||||
provider: "{{ cli }}"
|
|
||||||
|
|
||||||
- name: Create user
|
- name: Create user
|
||||||
vyos_user:
|
vyos_user:
|
||||||
name: ansibletest1
|
name: ansibletest1
|
||||||
configured_password: test
|
configured_password: test
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -28,7 +26,6 @@
|
||||||
- name: ansibletest3
|
- name: ansibletest3
|
||||||
level: operator
|
level: operator
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -42,7 +39,6 @@
|
||||||
configured_password: test
|
configured_password: test
|
||||||
state: present
|
state: present
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -57,7 +53,6 @@
|
||||||
- name: ansibletest3
|
- name: ansibletest3
|
||||||
level: operator
|
level: operator
|
||||||
state: present
|
state: present
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
@ -72,7 +67,6 @@
|
||||||
- name: ansibletest2
|
- name: ansibletest2
|
||||||
- name: ansibletest3
|
- name: ansibletest3
|
||||||
state: absent
|
state: absent
|
||||||
provider: "{{ cli }}"
|
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
Loading…
Reference in a new issue