generated from validatedpatterns/multicloud-gitops
-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Description
Suggestion so totally up to you, but one thing I like to do is use the main.yml file to just call other yml files. This allows you to organize the files and modularize the different set of tasks based upon what they are doing.
For example,
$ cat main.yml
---
- include_tasks: 10_validation.yml
- include_tasks: 20_subs.yml
.
.
.
$ cat 10_validation.yml
---
- name: Check ansible version
ansible.builtin.fail:
msg: Use Ansible version 2.9 or greater to run this playbook
when: ansible_version.full is version('2.9.0', '<')
Metadata
Metadata
Assignees
Labels
No labels