Sunday, January 29, 2023

Start with basic Ansible Playbook

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

Menu Creation

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="view...