jumpserver/apps/accounts/automations/verify_account/host/posix/main.yml

12 lines
320 B
YAML

- hosts: demo
gather_facts: no
tasks:
- name: Verify account
ansible.builtin.ping:
become: no
vars:
ansible_user: "{{ account.username }}"
ansible_password: "{{ account.secret }}"
ansible_ssh_private_key_file: "{{ account.private_key_path }}"
ansible_become: no