Fix cli_config junos integration test failures (#56159)

*  Priviledge escalation is not required for junos
   cli_config backup opeation.
This commit is contained in:
Ganesh Nalawade 2019-05-07 06:56:17 -04:00 committed by GitHub
parent f79b6b06f1
commit ae373d5a10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View file

@ -24,7 +24,6 @@
- name: take config backup - name: take config backup
cli_config: cli_config:
backup: yes backup: yes
become: yes
register: result register: result
- assert: - assert:
@ -48,7 +47,6 @@
backup_options: backup_options:
filename: backup.cfg filename: backup.cfg
dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}" dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}"
become: yes
register: result register: result
- assert: - assert:
@ -70,7 +68,6 @@
backup: yes backup: yes
backup_options: backup_options:
filename: backup.cfg filename: backup.cfg
become: yes
register: result register: result
- assert: - assert:
@ -92,7 +89,6 @@
backup: yes backup: yes
backup_options: backup_options:
dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}" dir_path: "{{ role_path }}/backup_test_dir/{{ inventory_hostname_short }}"
become: yes
register: result register: result
- assert: - assert:

View file

@ -4,12 +4,10 @@
- name: setup - name: setup
cli_config: &rm1 cli_config: &rm1
config: delete interfaces ge-0/0/1 config: delete interfaces ge-0/0/1
become: yes
- name: setup - name: setup
cli_config: &rm2 cli_config: &rm2
config: delete interfaces ge-0/0/2 config: delete interfaces ge-0/0/2
become: yes
- name: configure device with config - name: configure device with config
cli_config: &conf1 cli_config: &conf1