Skip to content

Instantly share code, notes, and snippets.

@JimmyJamTQBD
Last active August 29, 2019 00:14
Show Gist options
  • Save JimmyJamTQBD/a7576523158e22f6491cb60207261ae9 to your computer and use it in GitHub Desktop.
Save JimmyJamTQBD/a7576523158e22f6491cb60207261ae9 to your computer and use it in GitHub Desktop.
---
- hosts: localhost
tasks:
- name: Logon to CyberArk Vault using PAS Web Services SDK - Not use_shared_logon_authentication
cyberark_authentication:
api_base_url: "https://components.cyberark.local"
username: "administrator"
password: "Cyberark1"
use_shared_logon_authentication: no
register: {{ cyberark_session }}
- name: Disable user
cyberark_user:
username: bizdev
disabled: yes
state: absent
cyberark_session: '{{ cyberark_session }}'
- name: Logoff from CyberArk Vault
cyberark_authentication:
state: absent
cyberark_session: '{{ cyberark_session }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment