in DevOps by (23.9k points)
What is the requirement for sorting out playbooks as the job, is it vital?

1 Answer

0 votes
by (20.8k points)

Arranging playbooks as jobs , gives greater clarity and reusability to any plays , while consider an errand where MySQL establishment ought to be done after the evacuation of Oracle DB , and another prerequisite is expected to introduce MySQL after java establishment, in the two cases we have to introduce MySQL , yet without jobs need to compose playbooks independently for both use cases , yet utilizing jobs once the MySQL establishment job is made can be used any number of times by summoning utilizing rationale in site.yaml .

No, it isn’t important to make jobs for each situation, however making jobs is the best practice in Ansible.

Related questions

0 votes
asked Dec 4, 2021 in Other by DavidAnderson (9.0k points)
+1 vote
asked May 8, 2020 in Ansible by SakshiSharma (32.2k points)
0 votes
0 votes
0 votes
asked Dec 14, 2021 in Internet Of Things Prime by sharadyadav1986 (31.6k points)
...