Commit 46bcaa04 by e0d

Merge pull request #203 from edx/e0d/role-role

Basic role for consistently creating roles.
parents 15102512 f03dec0c
---
- name: ansible-role | create role directories
file: path=roles/{{role_name}}/{{ item }} state=directory
with_items:
- tasks
- handlers
- vars
- templates
- files
- name: ansible-role | make an ansible role
template: src={{ item }}/main.yml.j2 dest=roles/{{ role_name }}/{{ item }}/main.yml
with_items:
- tasks
- handlers
- vars
\ No newline at end of file
---
{% include 'roles/ansible-role/templates/header.j2' %}
#
# Handlers for role {{ role_name }}
#
# Overview:
#
#
- name: {{ role_name }} | notify me
debug: msg="stub handler"
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
---
{% include 'roles/ansible-role/templates/header.j2' %}
#
# Tasks for role {{ role_name }}
#
# Overview:
#
#
# Dependencies:
#
#
# Example play:
#
#
- name: {{ role_name }} | stub ansible task
debug: msg="This is a stub task created by the ansible-role role"
notify: {{ role_name }} | notify me
\ No newline at end of file
---
{% include 'roles/ansible-role/templates/header.j2' %}
#
# Vars for role {{ role_name }}
#
#
# vars are namespace with the module name.
#
{{ role_name }}_role_name: {{ role_name }}
#
# OS packages
#
{{ role_name }}_debian_pkgs: []
{{ role_name }}_redhat_pkgs: []
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment