diff options
author | Rohit <rohitthakur2590@outlook.com> | 2020-06-01 13:05:52 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 07:35:52 +0000 |
commit | 06235439435396c852535c2569542939bf65ef43 (patch) | |
tree | ff9facb3636f13b205bea0d14c7b0c9b12e3f18a /plugins/modules/vyos_user.py | |
parent | 24a6864db07e5f61cdd952a528d4fd6c147d8db4 (diff) | |
download | vyos.vyos-06235439435396c852535c2569542939bf65ef43.tar.gz vyos.vyos-06235439435396c852535c2569542939bf65ef43.zip |
[VyOS: ]all modules updated with FQCN and new doc changes (#33)
[VyOS: ]all modules updated with FQCN and new doc changes
Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'plugins/modules/vyos_user.py')
-rw-r--r-- | plugins/modules/vyos_user.py | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/plugins/modules/vyos_user.py b/plugins/modules/vyos_user.py index d6195240..d788a99f 100644 --- a/plugins/modules/vyos_user.py +++ b/plugins/modules/vyos_user.py @@ -19,13 +19,9 @@ # along with Ansible. If not, see <http://www.gnu.org/licenses/>. # -ANSIBLE_METADATA = { - "metadata_version": "1.1", - "status": ["preview"], - "supported_by": "network", -} -DOCUMENTATION = """module: vyos_user +DOCUMENTATION = """ +module: vyos_user author: Trishna Guha (@trishnaguha) short_description: Manage the collection of local users on VyOS device description: @@ -33,6 +29,7 @@ description: network devices. It allows playbooks to manage either individual usernames or the collection of usernames in the current running config. It also supports purging usernames from the configuration that are not explicitly defined. +version_added: 1.0.0 notes: - Tested against VyOS 1.1.8 (helium). - This module works with connection C(network_cli). See L(the VyOS OS Platform Options,../network/user_guide/platform_vyos.html). @@ -98,24 +95,24 @@ extends_documentation_fragment: EXAMPLES = """ - name: create a new user - vyos_user: + vyos.vyos.vyos_user: name: ansible configured_password: password state: present - name: remove all users except admin - vyos_user: + vyos.vyos.vyos_user: purge: yes - name: set multiple users to level operator - vyos_user: + vyos.vyos.vyos_user: aggregate: - - name: netop - - name: netend + - name: netop + - name: netend level: operator state: present - name: Change Password for User netop - vyos_user: + vyos.vyos.vyos_user: name: netop - configured_password: "{{ new_password }}" + configured_password: '{{ new_password }}' update_password: always state: present """ |