diff --git a/.travis.yml b/.travis.yml index e14428c..4684730 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ language: python services: docker install: - - pip install molecule[docker] + - pip install molecule[docker] --pre script: - molecule test diff --git a/README.md b/README.md index d6114d3..1ffb855 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ +[![Build Status](https://travis-ci.org/Accelize/ansible-role-aws-fpga.svg?branch=master)](https://travis-ci.org/Accelize/ansible-role-aws-fpga) + AWS FPGA Ansible Role ===================== -This Ansible role install the [AWS FPGA](https://github.com/aws/aws-fpga) -runtime libraries and utilities that are required to run FPGA devices based -application on AWS F1 instances. +This Ansible role install the [AWS FPGA](https://github.com/aws/aws-fpga) runtime libraries and utilities that are required to run FPGA devices based application on AWS F1 instances. Requirements ------------ @@ -15,18 +15,10 @@ The role requires to be run as root on the target host. Role Variables -------------- -* **aws_fpga_allow_non_root**: If `true`, allow FPGA devices access to users in - the group specified by *aws_fpga_sdk_group*. Default to `false`. -* **aws_fpga_sdk_group**: Name of the group of users that can access to FPGA - devices. Default to `fpgauser`. No effect if *aws_fpga_allow_non_root* is - `false`. -* **aws_fpga_sdk_override_group**: If true, do not raise error if the group - specified by *aws_fpga_sdk_group* already exists. Default to `false`. - No effect if *aws_fpga_allow_non_root* is `false`. -* **fpga_driver**: FPGA driver name. If specified, install and enable the - specified Linux kernel driver. See - [AWS FPGA linux kernel drivers](https://github.com/aws/aws-fpga/tree/master/sdk/linux_kernel_drivers) - for the list of available drivers. +* **aws_fpga_allow_non_root**: If `true`, allow FPGA devices access to users in the group specified by *aws_fpga_sdk_group*. Default to `false`. +* **aws_fpga_sdk_group**: Name of the group of users that can access to FPGA devices. Default to `fpgauser`. No effect if *aws_fpga_allow_non_root* is `false`. +* **aws_fpga_sdk_override_group**: If true, do not raise error if the group specified by *aws_fpga_sdk_group* already exists. Default to `false`. No effect if *aws_fpga_allow_non_root* is `false`. +* **fpga_driver**: FPGA driver name. If specified, install and enable the specified Linux kernel driver. See [AWS FPGA linux kernel drivers](https://github.com/aws/aws-fpga/tree/master/sdk/linux_kernel_drivers) for the list of available drivers. Example Playbook ---------------- @@ -38,8 +30,6 @@ Including an example of how to use your role (for instance, with variables passe become: true roles: - role: accelize.aws_fpga - vars: - aws_fpga_allow_non_root: true ``` Dependencies diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..e480bb9 --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,32 @@ +--- +galaxy_info: + role_name: aws_fpga + author: Accelize + description: 'This Ansible role install the AWS FPGA runtime libraries and utilities.' + company: Accelize + license: Apache License 2.0 + min_ansible_version: '2.8' + platforms: + - name: EL + versions: + - 7 + - name: Ubuntu + versions: + - xenial + - bionic + - name: Debian + versions: + - stretch + - buster + - name: Fedora + versions: + - 29 + - 30 + galaxy_tags: + - system + - cloud + - fpga + - aws + - amazon + - ec2 +dependencies: [] diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index fb5f9f6..bbbdbea 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -10,16 +10,13 @@ lint: platforms: - name: ubuntu_bionic image: ubuntu:bionic - - name: ubuntu_xenial - image: ubuntu:xenial - - name: debian_stretch - image: debian:stretch - - name: debian_buster - image: debian:buster - - name: ubuntu_latest - image: ubuntu:latest + privileged: true - name: centos_7 image: centos:7 + privileged: true + - name: fedora_29 + image: fedora:29 + privileged: true provisioner: name: ansible lint: diff --git a/molecule/default/playbook.yml b/molecule/default/playbook.yml index b885761..a6e6af6 100644 --- a/molecule/default/playbook.yml +++ b/molecule/default/playbook.yml @@ -2,4 +2,4 @@ - name: Converge hosts: all roles: - - role: accelize.aws_fpga + - role: ansible-role-aws-fpga