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

12 lines
320 B
YAML
Raw Normal View History

2022-10-28 10:28:41 +00:00
- 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