mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Swap how become is specified for ios integration tests (#34107)
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
- no ip domain-list redhat.com
|
||||
match: none
|
||||
authorize: yes
|
||||
become: yes
|
||||
|
||||
- name: configure domain_search
|
||||
ios_system:
|
||||
@@ -16,7 +15,6 @@
|
||||
- ansible.com
|
||||
- redhat.com
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -31,7 +29,6 @@
|
||||
- ansible.com
|
||||
- redhat.com
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -43,7 +40,6 @@
|
||||
domain_search:
|
||||
- ansible.com
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -56,7 +52,6 @@
|
||||
domain_search:
|
||||
- ansible.com
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -69,7 +64,6 @@
|
||||
- ansible.com
|
||||
- redhat.com
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -83,7 +77,6 @@
|
||||
- ansible.com
|
||||
- redhat.com
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -96,7 +89,6 @@
|
||||
- ansible.com
|
||||
- eng.ansible.com
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -112,7 +104,6 @@
|
||||
- ansible.com
|
||||
- eng.ansible.com
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -127,6 +118,5 @@
|
||||
- no ip domain-list eng.ansible.com
|
||||
match: none
|
||||
authorize: yes
|
||||
become: yes
|
||||
|
||||
- debug: msg="END cli/set_domain_search.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
@@ -6,13 +6,11 @@
|
||||
lines: no ip domain-name
|
||||
match: none
|
||||
authorize: yes
|
||||
become: yes
|
||||
|
||||
- name: configure domain_name
|
||||
ios_system:
|
||||
domain_name: eng.ansible.com
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -23,7 +21,6 @@
|
||||
ios_system:
|
||||
domain_name: eng.ansible.com
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -35,6 +32,5 @@
|
||||
lines: no ip domain-name
|
||||
match: none
|
||||
authorize: yes
|
||||
become: yes
|
||||
|
||||
- debug: msg="END cli/set_domain_name.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
@@ -6,13 +6,11 @@
|
||||
lines: hostname switch
|
||||
match: none
|
||||
authorize: yes
|
||||
become: yes
|
||||
|
||||
- name: configure hostname
|
||||
ios_system:
|
||||
hostname: foo
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -23,7 +21,6 @@
|
||||
ios_system:
|
||||
hostname: foo
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -35,6 +32,5 @@
|
||||
lines: "hostname {{ inventory_hostname }}"
|
||||
match: none
|
||||
authorize: yes
|
||||
become: yes
|
||||
|
||||
- debug: msg="END cli/set_hostname.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
@@ -8,13 +8,11 @@
|
||||
- vrf definition ansible
|
||||
match: none
|
||||
authorize: yes
|
||||
become: yes
|
||||
|
||||
- name: configure lookup_source
|
||||
ios_system:
|
||||
lookup_source: Loopback888
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -26,7 +24,6 @@
|
||||
ios_system:
|
||||
lookup_source: Loopback888
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -37,7 +34,6 @@
|
||||
ios_system:
|
||||
lookup_enabled: False
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -49,7 +45,6 @@
|
||||
ios_system:
|
||||
lookup_enabled: True
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -64,7 +59,6 @@
|
||||
# vrf: ansible
|
||||
# authorize: yes
|
||||
# provider: "{{ cli }}"
|
||||
# become: yes
|
||||
# register: result
|
||||
#
|
||||
#- assert:
|
||||
@@ -81,7 +75,6 @@
|
||||
# vrf: ansible
|
||||
# authorize: yes
|
||||
# provider: "{{ cli }}"
|
||||
# become: yes
|
||||
# register: result
|
||||
#
|
||||
#- assert:
|
||||
@@ -95,7 +88,6 @@
|
||||
- no vrf definition ansible
|
||||
match: none
|
||||
authorize: yes
|
||||
become: yes
|
||||
ignore_errors: yes
|
||||
# FIXME: Not sure why this is failing with msg": "no vrf definition ansible\r\n% IPv4 and IPv6 addresses from all interfaces in VRF ansible have been removed\r\nfoo(config)#", rc:1
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
- no ip name-server
|
||||
match: none
|
||||
authorize: yes
|
||||
become: yes
|
||||
|
||||
- name: configure name_servers
|
||||
ios_system:
|
||||
@@ -16,7 +15,6 @@
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -34,7 +32,6 @@
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -76,7 +73,6 @@
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
authorize: yes
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
@@ -91,6 +87,5 @@
|
||||
- no ip name-server
|
||||
match: none
|
||||
authorize: yes
|
||||
become: yes
|
||||
|
||||
- debug: msg="END cli/set_name_servers.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
Reference in New Issue
Block a user