| 1. |
What Is Ansible Role? |
|
Answer» Ansible can interact with configured clients from the command LINE with the ansible command, and how you can automate configuration with playbooks run through the ansible-playbook command. The first step in creating a role is creating its DIRECTORY structure. To create the BASE directory structure, we’re going to use a tool BUNDLED with Ansible called ansible-galaxy:
That command will create an azavea.packer directory with the following structure: +-- README.md +-- defaults ¦ +-- main.yml +-- files +-- handlers ¦ +-- main.yml +-- meta ¦ +-- main.yml +-- tasks ¦ +-- main.yml +-- TEMPLATES +-- vars +-- main.yml Ansible can interact with configured clients from the command line with the ansible command, and how you can automate configuration with playbooks run through the ansible-playbook command. The first step in creating a role is creating its directory structure. To create the base directory structure, we’re going to use a tool bundled with Ansible called ansible-galaxy: That command will create an azavea.packer directory with the following structure: +-- README.md +-- defaults ¦ +-- main.yml +-- files +-- handlers ¦ +-- main.yml +-- meta ¦ +-- main.yml +-- tasks ¦ +-- main.yml +-- templates +-- vars +-- main.yml |
|