yml --> yml file invocation (ansible playbook)

15 views
Skip to first unread message

Heman Malve

unread,
Feb 18, 2021, 1:22:16 AM2/18/21
to Ansible Development
Team,

Requirement is , 
1)define main yaml file with  - hosts: localhost (its just execution in localhost) and should contain ~10 yaml files which will perform individual activities based upon  hosts {remote servers} entry
I have tried using tasks, name & other modules but not succeeded.

main.yaml file -
- hosts: localhost
   gather_facts: no

   - name : Title of application task
      include_tasks:
                - file1.yaml
                - file2.yaml
     

Heman Malve

unread,
Feb 18, 2021, 2:05:43 AM2/18/21
to Ansible Development
I'm able to do with import_playbook module ..
Reply all
Reply to author
Forward
0 new messages