community.network.pn_role – CLI command to create/delete/modify role¶
Note
This plugin is part of the community.network collection (version 1.3.2).
To install it use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.pn_role
.
Parameters¶
Examples¶
- name: Role create
community.network.pn_role:
pn_cliswitch: 'sw01'
state: 'present'
pn_name: 'foo'
pn_scope: 'local'
pn_access: 'read-only'
- name: Role delete
community.network.pn_role:
pn_cliswitch: 'sw01'
state: 'absent'
pn_name: 'foo'
- name: Role modify
community.network.pn_role:
pn_cliswitch: 'sw01'
state: 'update'
pn_name: 'foo'
pn_access: 'read-write'
pn_sudo: true
pn_shell: true
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Pluribus Networks (@rajaspachipulusu17)