Skip to content

REve-Workshop/ansible-mu-role

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role for Mu Installation

WARNING

Do not rely on the code blindly, it as not been tested yet.

Introduction

This Ansible role allows to install or update the mu application.

This role expects:

  • All mu dependencies to be present on the system.
  • The builder_user and builder_group to be setup correctly on the target.
  • The target to have an access to the repositories containing the sources of mu.

Installation

Add this repository as a role directory inside an existing ansible project.

Usage

The following variables can be overloaded in your playbook:
  • repository, the repository of mu. [Default: https://github.com/djcb/mu.git]
  • working_dir, the working directory where to clone/checkout the repository. [Default: /usr/local/src/mu ]
  • builder_user: The user to impersonate to build the application. [Default: builder].
  • builder_group: The primary group of the user to impersonate to build the application. [Default: builder].

The role is to be executed as the root user on the target hosts.

Example playbook

---
- host: all
  gather_facts: False
  tasks:
    - name: Deploy mu
      include_role:
        name: mu
      vars:
        repository: https://github.com/montaropdf/my-mu-fork.git
        working_dir: /var/lib/src/git_repos/mu