create roles/demolamp/tasks/main.yml
This commit is contained in:
6
main.yml
Normal file
6
main.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
- name: main task
|
||||||
|
hosts: "{{ inputHostsGroups }}"
|
||||||
|
gather_facts: false
|
||||||
|
roles:
|
||||||
|
- role: demolamp
|
||||||
7
roles/demolamp/tasks/main.yml
Normal file
7
roles/demolamp/tasks/main.yml
Normal 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 }}"
|
||||||
1
roles/demolamp/vars/main.yml
Normal file
1
roles/demolamp/vars/main.yml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
greeting: "hello ansible-playbook"
|
||||||
Reference in New Issue
Block a user