ansible / ansible.builtin / v2.9.27 / module / pn_admin_service CLI command to modify admin-service | "added in version" 2.8 of ansible.builtin" Authors: Pluribus Networks (@rajaspachipulusu17) preview | supported by communityansible.builtin.pn_admin_service (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
This module is used to modify services on the server-switch.
- name: admin service functionality pn_admin_service: pn_cliswitch: "sw01" state: "update" pn__if: "mgmt" pn_web: False pn_icmp: True
- name: admin service functionality pn_admin_service: pn_cliswitch: "sw01" state: "update" pn_web: False pn__if: "mgmt" pn_snmp: True pn_net_api: True pn_ssh: True
state: choices: - update description: - State the action to perform. Use C(update) to modify the admin-service. required: true type: str pn__if: choices: - mgmt - data description: - administrative service interface. required: false type: str pn_nfs: description: - Network File System (NFS) to enable or disable. required: false type: bool pn_ssh: description: - Secure Shell to enable or disable. required: false type: bool pn_web: description: - Web (HTTP) to enable or disable. required: false type: bool pn_icmp: description: - Internet Message Control Protocol (ICMP) to enable or disable. required: false type: bool pn_snmp: description: - Simple Network Monitoring Protocol (SNMP) to enable or disable. required: false type: bool pn_net_api: description: - Netvisor API to enable or disable APIs. required: false type: bool pn_web_log: description: - Web logging to enable or disable. required: false type: bool pn_web_ssl: description: - Web SSL (HTTPS) to enable or disable. required: false type: bool pn_web_port: description: - Web (HTTP) port to enable or disable. required: false type: str pn_cliswitch: description: - Target switch to run the CLI on. required: false type: str pn_web_ssl_port: description: - Web SSL (HTTPS) port to enable or disable. required: false type: str
changed: description: indicates whether the CLI caused changes on the target. returned: always type: bool command: description: the CLI command run on the target node. returned: always type: str stderr: description: set of error responses from the admin-service command. returned: on error type: list stdout: description: set of responses from the admin-service command. returned: always type: list