jumpserver/apps/assets/playbooks/host/ansible_posix_ping/main.yml

14 lines
256 B
YAML

- hosts: centos
gather_facts: no
vars:
account:
username: web
password: test123
tasks:
- name: Verify password
ping:
vars:
ansible_user: "{{ account.username }}"
ansible_pass: "{{ account.password }}"