create roles/demolamp/tasks/main.yml

This commit is contained in:
Gary Kwok
2024-02-20 17:24:14 +08:00
parent b80cf1749c
commit e93096ea3b
3 changed files with 14 additions and 0 deletions

6
main.yml Normal file
View File

@@ -0,0 +1,6 @@
---
- name: main task
hosts: "{{ inputHostsGroups }}"
gather_facts: false
roles:
- role: demolamp

View File

@@ -0,0 +1,7 @@
---
- name: show remote host
debug:
msg: "the remote server is {{ ansible_host }}"
- name: show vars of this playbook
debug:
msg: "{{ greeting }}"

View File

@@ -0,0 +1 @@
greeting: "hello ansible-playbook"