Skip to content

Commit

Permalink
Added include example
Browse files Browse the repository at this point in the history
  • Loading branch information
directdevops committed Jan 2, 2021
1 parent 048aa29 commit 7dbf9f9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dec20/AdvancedScenarios/include-import/inventory
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
localhost
9 changes: 9 additions & 0 deletions Dec20/AdvancedScenarios/include-import/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
- hosts: all
gather_facts: no
become: no
tasks:
- name: non-included task
debug:
msg: "i'm from calling playbook"
- include: more-tasks.yaml
8 changes: 8 additions & 0 deletions Dec20/AdvancedScenarios/include-import/more-tasks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
- name: included task 1
debug:
msg: "This is first included task"

- name: included task 2
debug:
msg: "This is first included task"

0 comments on commit 7dbf9f9

Please sign in to comment.