|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
commands:
|
|
|
|
|
- command: terminal dont-ask
|
|
|
|
|
output: text
|
|
|
|
|
- command: delete nxos.yaml
|
|
|
|
|
- command: delete network-integration.cfg
|
|
|
|
|
output: text
|
|
|
|
|
provider: "{{ nxapi }}"
|
|
|
|
|
ignore_errors: yes
|
|
|
|
@ -20,9 +20,9 @@
|
|
|
|
|
provider: "{{ nxapi }}"
|
|
|
|
|
|
|
|
|
|
- block:
|
|
|
|
|
- name: "Copy nxos.yaml to bootflash"
|
|
|
|
|
- name: "Copy network-integration.cfg to bootflash"
|
|
|
|
|
nxos_file_copy: ©_file_same_name
|
|
|
|
|
local_file: "./nxos.yaml"
|
|
|
|
|
local_file: "./network-integration.cfg"
|
|
|
|
|
file_system: "bootflash:"
|
|
|
|
|
provider: "{{ nxapi }}"
|
|
|
|
|
username: "{{ ansible_ssh_user }}"
|
|
|
|
@ -35,7 +35,7 @@
|
|
|
|
|
that:
|
|
|
|
|
- "result.changed == true"
|
|
|
|
|
|
|
|
|
|
- name: "Check Idempotence - Copy nxos.yaml to bootflash"
|
|
|
|
|
- name: "Check Idempotence - Copy network-integration.cfg to bootflash"
|
|
|
|
|
nxos_file_copy: *copy_file_same_name
|
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
@ -48,10 +48,10 @@
|
|
|
|
|
register: result
|
|
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
|
|
- name: "Copy ios.yaml to bootflash as another name"
|
|
|
|
|
- name: "Copy inventory.networking.template to bootflash as another name"
|
|
|
|
|
nxos_file_copy: ©_file_different_name
|
|
|
|
|
local_file: "./ios.yaml"
|
|
|
|
|
remote_file: "nxos.yaml"
|
|
|
|
|
local_file: "./inventory.networking.template"
|
|
|
|
|
remote_file: "network-integration.cfg"
|
|
|
|
|
file_system: "bootflash:"
|
|
|
|
|
provider: "{{ nxapi }}"
|
|
|
|
|
username: "{{ ansible_ssh_user }}"
|
|
|
|
@ -62,7 +62,7 @@
|
|
|
|
|
|
|
|
|
|
- assert: *true
|
|
|
|
|
|
|
|
|
|
- name: "Check Idempotence - Copy ios.yaml to bootflash as another name"
|
|
|
|
|
- name: "Check Idempotence - Copy inventory.networking.template to bootflash as another name"
|
|
|
|
|
nxos_file_copy: *copy_file_different_name
|
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|