This is basic playbook to ping your localhost (Controller node)
===============================================================
---
- name: "My First Playbook"
hosts: localhost
tasks:
- name: "test connectivity"
ping:
===============================================================
Ad-hoc task for same playbook
command: ansible localhost -m ping
#ansible
#ansibleAutomation
No comments:
Post a Comment