Skip to content

Users

dvn_user

create/update/delete DVN DART/REST admin users

Synopsis

  • Create an admin user
  • Update an admin user's password
  • Change an admin user's privilege level
  • Delete an admin user

Options

Parameter Required? Default Choices Comments
username service-prov administrator username. If not specified as a parameter, the environment variable DVNREST_USER will be used.
password service-prov password If not specified as a parameter, the environment variable DVNREST_PASSWORD will be used.
url service-prov url. If not specified as a parameter, the environment variable DVNREST_URL will be used.
validate_certs True Check certs. Use false to allow self-signed. If not specified as a parameter, the environment variable VALIDATE_CERTS will be used.
state no present
  • present
  • absent
specify state of the user
admin_login ID of user to update. If unspecified, the ID given to parameter 'username' will be updated.
admin_privilege full
  • full
  • readonly
Privilege level for user
admin_password no Updated password for user

Examples


  - name: update password of the current user
    dvn_user:
      new_password: P@ssw0rd##

  - name: authenticate as user_a and update user_b's password
    dvn_user:
      url: https://localhost:3333
      username: user_a
      password: P@ssw0rdA
      admin_login: user_b
      admin_password: P@ssw0rdB

  - name: authenticate as user_a and update user_b's password
    dvn_user:
      url: https://localhost:3333
      username: user_a
      password: P@ssw0rdA
      admin_login: user_b
      admin_password: P@ssw0rdB