Playbook run order

Hi all!

Just a simple question but it may be just looking into it too deep.

I’ve got several playbooks that I run sequentially manually during a server build. How would I create a separate playbook and call these other playbooks in their respective order?

Thanks!

You can use import_playbook [1] like

`

main.yml

  • import_playbook: playbook1.yml
  • import_playbook: playbook2.yml

`

[1] - https://docs.ansible.com/ansible/latest/modules/import_playbook_module.html