Skip to main content

Project 002 Ansible Roles

Updated Jan 04, 2021 ·

Overview

This project focuses on role-based Ansible structure.

It contains a webservers role and playbooks that apply the role with standard variables and vault-protected variables.

Structure

PathPurpose
ansible.cfgProject-level Ansible configuration.
edendev.invLab inventory.
setup-app-roles.ymlApplies the web server role.
setup-app-vault.ymlApplies the role with vault-related values.
roles/webserversWeb server role with tasks, handlers, files, vars, and defaults.

Useful Commands

ansible-playbook setup-app-roles.yml
ansible-playbook setup-app-vault.yml --ask-vault-pass