test.yml
---
- name: CloudEngine
hosts: route
connection: network_cli
gather_facts: no
vars:
cli:
hosts: "{{inventory_hostname}}"
port: "{{ansible_ssh_port}}"
username: "{{ansible_ssh_user}}"
password: "{{ansible_ssh_pass}}"
transport: cli
tasks: - name: "save config" community.network.ce_config: save: yes provider: "{{cli}}" register: output