blob: a8868720d0193eb7d0c0f28b38266bede21a4537 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
---
- hosts: "{{ host }}"
remote_user: "{{ user }}"
become: yes
become_method: sudo
vars:
user: "root"
tasks:
- name: test connectivity
command: "echo hello {{ host }}"
register: result
- debug: msg="{{ result }}"
|