Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_system_module.rst

raw
1 .. _cisco.nxos.nxos_system_module:
2
3
4 **********************
5 cisco.nxos.nxos_system
6 **********************
7
8 **Manage the system attributes on Cisco NXOS devices**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module provides declarative management of node system attributes on Cisco NXOS devices. It provides an option to configure host system parameters or remove those parameters from the device active configuration.
21
22
23
24
25 Parameters
26 ----------
27
28 .. raw:: html
29
30 <table border=0 cellpadding=0 class="documentation-table">
31 <tr>
32 <th colspan="1">Parameter</th>
33 <th>Choices/<font color="blue">Defaults</font></th>
34 <th width="100%">Comments</th>
35 </tr>
36 <tr>
37 <td colspan="1">
38 <div class="ansibleOptionAnchor" id="parameter-"></div>
39 <b>domain_lookup</b>
40 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
41 <div style="font-size: small">
42 <span style="color: purple">boolean</span>
43 </div>
44 </td>
45 <td>
46 <ul style="margin: 0; padding: 0"><b>Choices:</b>
47 <li>no</li>
48 <li>yes</li>
49 </ul>
50 </td>
51 <td>
52 <div>Enables or disables the DNS lookup feature in Cisco NXOS. This argument accepts boolean values. When enabled, the system will try to resolve hostnames using DNS and when disabled, hostnames will not be resolved.</div>
53 </td>
54 </tr>
55 <tr>
56 <td colspan="1">
57 <div class="ansibleOptionAnchor" id="parameter-"></div>
58 <b>domain_name</b>
59 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
60 <div style="font-size: small">
61 <span style="color: purple">list</span>
62 / <span style="color: purple">elements=raw</span>
63 </div>
64 </td>
65 <td>
66 </td>
67 <td>
68 <div>Configures the default domain name suffix to be used when referencing this node by its FQDN. This argument accepts either a list of domain names or a list of dicts that configure the domain name and VRF name or keyword &#x27;default&#x27;. See examples.</div>
69 </td>
70 </tr>
71 <tr>
72 <td colspan="1">
73 <div class="ansibleOptionAnchor" id="parameter-"></div>
74 <b>domain_search</b>
75 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
76 <div style="font-size: small">
77 <span style="color: purple">list</span>
78 / <span style="color: purple">elements=raw</span>
79 </div>
80 </td>
81 <td>
82 </td>
83 <td>
84 <div>Configures a list of domain name suffixes to search when performing DNS name resolution. This argument accepts either a list of domain names or a list of dicts that configure the domain name and VRF name or keyword &#x27;default&#x27;. See examples.</div>
85 </td>
86 </tr>
87 <tr>
88 <td colspan="1">
89 <div class="ansibleOptionAnchor" id="parameter-"></div>
90 <b>hostname</b>
91 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
92 <div style="font-size: small">
93 <span style="color: purple">string</span>
94 </div>
95 </td>
96 <td>
97 </td>
98 <td>
99 <div>Configure the device hostname parameter. This option takes an ASCII string value or keyword &#x27;default&#x27;</div>
100 </td>
101 </tr>
102 <tr>
103 <td colspan="1">
104 <div class="ansibleOptionAnchor" id="parameter-"></div>
105 <b>name_servers</b>
106 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
107 <div style="font-size: small">
108 <span style="color: purple">list</span>
109 / <span style="color: purple">elements=raw</span>
110 </div>
111 </td>
112 <td>
113 </td>
114 <td>
115 <div>List of DNS name servers by IP address to use to perform name resolution lookups. This argument accepts either a list of DNS servers or a list of hashes that configure the name server and VRF name or keyword &#x27;default&#x27;. See examples.</div>
116 </td>
117 </tr>
118 <tr>
119 <td colspan="1">
120 <div class="ansibleOptionAnchor" id="parameter-"></div>
121 <b>state</b>
122 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
123 <div style="font-size: small">
124 <span style="color: purple">string</span>
125 </div>
126 </td>
127 <td>
128 <ul style="margin: 0; padding: 0"><b>Choices:</b>
129 <li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
130 <li>absent</li>
131 </ul>
132 </td>
133 <td>
134 <div>State of the configuration values in the device&#x27;s current active configuration. When set to <em>present</em>, the values should be configured in the device active configuration and when set to <em>absent</em> the values should not be in the device active configuration</div>
135 </td>
136 </tr>
137 <tr>
138 <td colspan="1">
139 <div class="ansibleOptionAnchor" id="parameter-"></div>
140 <b>system_mtu</b>
141 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
142 <div style="font-size: small">
143 <span style="color: purple">string</span>
144 </div>
145 </td>
146 <td>
147 </td>
148 <td>
149 <div>Specifies the mtu, must be an integer or keyword &#x27;default&#x27;.</div>
150 </td>
151 </tr>
152 </table>
153 <br/>
154
155
156 Notes
157 -----
158
159 .. note::
160 - Unsupported for Cisco MDS
161 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
162 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
163 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
164
165
166
167 Examples
168 --------
169
170 .. code-block:: yaml
171
172 - name: configure hostname and domain-name
173 cisco.nxos.nxos_system:
174 hostname: nxos01
175 domain_name: test.example.com
176
177 - name: remove configuration
178 cisco.nxos.nxos_system:
179 state: absent
180
181 - name: configure name servers
182 cisco.nxos.nxos_system:
183 name_servers:
184 - 8.8.8.8
185 - 8.8.4.4
186
187 - name: configure name servers with VRF support
188 cisco.nxos.nxos_system:
189 name_servers:
190 - {server: 8.8.8.8, vrf: mgmt}
191 - {server: 8.8.4.4, vrf: mgmt}
192
193
194
195 Return Values
196 -------------
197 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:
198
199 .. raw:: html
200
201 <table border=0 cellpadding=0 class="documentation-table">
202 <tr>
203 <th colspan="1">Key</th>
204 <th>Returned</th>
205 <th width="100%">Description</th>
206 </tr>
207 <tr>
208 <td colspan="1">
209 <div class="ansibleOptionAnchor" id="return-"></div>
210 <b>commands</b>
211 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
212 <div style="font-size: small">
213 <span style="color: purple">list</span>
214 </div>
215 </td>
216 <td>always</td>
217 <td>
218 <div>The list of configuration mode commands to send to the device</div>
219 <br/>
220 <div style="font-size: smaller"><b>Sample:</b></div>
221 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;hostname nxos01&#x27;, &#x27;ip domain-name test.example.com&#x27;]</div>
222 </td>
223 </tr>
224 </table>
225 <br/><br/>
226
227
228 Status
229 ------
230
231
232 Authors
233 ~~~~~~~
234
235 - Peter Sprygada (@privateip)