avtar / ansible-gpii-framework

GPII Framework Ansible role

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GPII Framework Ansible Role

This role automates the provisioning of the GPII Framework on Fedora. It relies heavily on a Node.js role to do most of its work.

The GPII Framework tests require an Orca ~/.local/share/orca/user-settings.conf file exists. This role includes a config shipped with Orca 3.16 and copies it to the mentioned location.

Role Variables

Please refer to the defaults/main.yml file for a list of variables.

Requirements

The following roles are required:

Example

Here is an example playbook that uses this role:

- hosts: localhost
  user: root

  vars:
    nodejs_app_name: gpii-linux-framework
    nodejs_app_git_repo: https://github.com/gpii/linux.git
    nodejs_app_git_branch: master
    nodejs_app_rpm_packages:
      - nodejs-grunt-cli
      - orca
      - glib2-devel
      - PackageKit-glib-devel
      - json-glib-devel
      - libXrandr-devel
      - libXrender-devel
      - libX11-devel
      - xorg-x11-proto-devel
      - alsa-lib-devel
      - tuxguitar
    nodejs_app_commands:
      - npm install
      - grunt --force build
    nodejs_app_start_script: gpii.js
    nodejs_app_install_dir: /home/vagrant/gpii-framework
    nodejs_app_git_clone: false

  roles:
    - facts
    - nodejs
    - gpii-framework

About

GPII Framework Ansible role