You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<div>The <em>defaults</em> argument will influence how the running-config is collected from the device. When the value is set to true, the command used to collect the running-config is append with the all keyword. When the value is set to false, the command is issued without the all keyword.</div>
<aclass="ansibleOptionLink"href="#parameter-"title="Permalink to this option"></a>
60
-
<divstyle="font-size: small">
61
-
<spanstyle="color: purple">path</span>
62
-
</div>
63
-
</td>
64
-
<td>
65
-
</td>
66
-
<td>
67
-
<div>This option provides the path ending with directory name in which the backup configuration file will be stored. If the directory does not exist it will be first created and the filename is either the value of <code>filename</code> or default filename as described in <code>filename</code> options description. If the path value is not given in that case a <em>backup</em> directory will be created in the current working directory and backup configuration will be copied in <code>filename</code> within <em>backup</em> directory.</div>
<aclass="ansibleOptionLink"href="#parameter-"title="Permalink to this option"></a>
75
-
<divstyle="font-size: small">
76
-
<spanstyle="color: purple">string</span>
77
-
</div>
78
-
</td>
79
-
<td>
80
-
</td>
81
-
<td>
82
-
<div>The filename to be used to store the backup configuration. If the filename is not given it will be generated based on the hostname, current time and date in format defined by <hostname>_config.<current-date>@<current-time></div>
<aclass="ansibleOptionLink"href="#parameter-defaults"title="Permalink to this option"></a>
54
+
<pstyle="font-size: small; margin-bottom: 0;">
55
+
<spanstyle="color: purple;">boolean</span>
56
+
</p>
57
+
</td>
58
+
<tdvalign="top">
59
+
<p>The <em>defaults</em> argument will influence how the running-config is collected from the device. When the value is set to true, the command used to collect the running-config is append with the all keyword. When the value is set to false, the command is issued without the all keyword.</p>
<p>This option provides the path ending with directory name in which the backup configuration file will be stored. If the directory does not exist it will be first created and the filename is either the value of <code class='docutils literal notranslate'>filename</code> or default filename as described in <code class='docutils literal notranslate'>filename</code> options description. If the path value is not given in that case a <em>backup</em> directory will be created in the current working directory and backup configuration will be copied in <code class='docutils literal notranslate'>filename</code> within <em>backup</em> directory.</p>
<p>The filename to be used to store the backup configuration. If the filename is not given it will be generated based on the hostname, current time and date in format defined by <hostname>_config.<current-date>@<current-time></p>
92
+
</td>
93
+
</tr>
94
+
</tbody>
95
+
</table>
96
+
97
+
87
98
88
99
89
100
Notes
90
101
-----
91
102
92
-
.. note::
93
-
- This module is supported on ``ansible_network_os`` network platforms. See the :ref:`Network Platform Options <platform_options>` for details.
94
-
103
+
- This module is supported on \ :literal:`ansible\_network\_os`\ network platforms. See the :ref:\`Network Platform Options \<platform\_options\>\` for details.
95
104
96
105
97
106
Examples
98
107
--------
99
108
100
109
.. code-block:: yaml
101
110
111
+
102
112
- name: configurable backup path
103
113
ansible.netcommon.cli_backup:
104
114
filename: backup.cfg
105
115
dir_path: /home/user
106
116
107
117
108
118
119
+
120
+
109
121
Return Values
110
122
-------------
111
-
Common return values are documented `here <https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
123
+
The following are the fields unique to this module:
0 commit comments