Lab 2: Variables & Templates
Playbook
Inventory
---
- name: Variables and Templates Lab
hosts: localhost
gather_facts: yes
# Task 1: Define your variables here
vars:
# Add variables here
tasks:
# Task 2: Create a config file using variables
# Add your code here
# Task 3: Display system facts
# Add your code here
localhost ansible_connection=local
Output
Waiting for playbook execution...