network/roles/access/handlers/main.yml

7 lines
230 B
YAML

- name: write config
ansible.netcommon.cli_command:
command: "copy running-config startup-config"
prompt: "Destination filename startup-config\\? \\[y/n\\]: "
answer: "y"
when: "'handler' not in ansible_skip_tags"