DevOps Classroomnotes 31/Mar/2022

Reusing Playbooks

  • Creating Reusable playbooks is inevitable. In ansible we have two options for reusing playbooks
    • Including and importing
    • Roles

Including and Importing

  • These allow users to break up larger playbooks into smaller files, which can be used across multiple parent playbooks or even multiple times within the same playbooks
  • Dynamic vs static:
    • Ansible has two modes of operation for reusable content dynamic and static
    • If you use include* it will be dynamic
    • If you use import* it will be static
  • We can import/include playbooks, task files & roles
  • Refer Here for the correct implementation
  • Refer Here for tasks reusability
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Customized Social Media Icons from Acurax Digital Marketing Agency

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%