The role structure would look like this – 3. Create a role $ ansible-galaxy init install_docker Create a directory $ mkdir ansible & cd ansible 2. Now, let’s follow a step by step approach to create our role to install Docker. We can create an Ansible role using the following command – $ ansible-galaxy init This enhances reuse-ability and promotes modularisation of configuration. We can break a complex Ansible playbook into fully independent or interdependent collections of files, tasks, templates, variables, and modules. Roles are a feature in Ansible that simplifies the playbook. Hi everyone! Today in this blog, we will be installing Docker by creating an Ansible role.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |