2023-12-18 10:22:14 +00:00
|
|
|
- name: write config
|
|
|
|
ansible.netcommon.cli_command:
|
|
|
|
command: "copy running-config startup-config"
|
2023-12-29 13:55:00 +00:00
|
|
|
prompt:
|
|
|
|
- "Destination filename startup-config\\? \\[y/n\\]: " # d-link
|
|
|
|
- "Do you want to overwrite \\[/data/config.text\\]\\? \\[Y/N\\]:" # fs
|
|
|
|
answer:
|
|
|
|
- "y"
|
|
|
|
- "y"
|
2024-10-02 12:27:45 +00:00
|
|
|
when: "not ansible_check_mode and 'handler' not in ansible_skip_tags"
|