Debian Codegraph @

ansible_collections/cisco/nxos/tests/integration/targets/nxos_file_copy/tasks/main.yaml

raw symbols SCIP
1 ---
2 - name: Fetch mgmt interface information
3 cisco.nxos.nxos_command:
4 commands: show interface mgmt 0 | json
5 register: result
6 vars:
7 ansible_connection: ansible.netcommon.network_cli
8
9 - name: Store mgmt interface IP address
10 ansible.builtin.set_fact:
11 mgmt0_ip: "{{ result['stdout'][0]['TABLE_interface']['ROW_interface']['eth_ip_addr'] }}"
12
13 - name: Generate and store random password for temp user
14 ansible.builtin.set_fact:
15 temp_passwd: "{{ lookup('password', '/dev/null length=15 chars=ascii_letters') }}"
16 delegate_to: localhost
17 no_log: true
18
19 - name: Configure temporary user for test
20 cisco.nxos.nxos_user:
21 name: temp_user
22 configured_password: "{{ temp_passwd }}"
23 vars:
24 ansible_connection: ansible.netcommon.network_cli
25 # - name: Run the CLI and NX-API tests
26 # block:
27 # # - name: Include the CLI tasks
28 # # ansible.builtin.include_tasks: cli.yaml
29 # # tags:
30 # # - cli
31
32 # # - name: Include the NX-API tasks (REMOVED : file copy not supported over httpapi)
33 # # ansible.builtin.include_tasks: nxapi.yaml
34 # # tags:
35 # # - nxapi
36 # always:
37 # - name: Remove temporary user
38 # cisco.nxos.nxos_user:
39 # name: temp_user
40 # state: absent
41 # retries: 3
42 # delay: 10
43 # vars:
44 # ansible_connection: ansible.netcommon.network_cli