ansible_role_alpha29_vcftools
ansible-role-alpha29-vcftools
Installs vcftools, a set of tools written in Perl and C++ for working with VCF files, such as those generated by the 1000 Genomes Project.
Requirements
This role requires root access, so either run it in a playbook with a global become: yes
, or invoke the role in your playbook like:
- hosts: localhost
roles:
- role: alpha29.vcftools
become: yes
Role Variables
You can override the following default settings as needed:
vcftools_version: "0.1.16"
Dependencies
See requirements.yml for third-party role dependencies.
Example Playbook
---
- name: install vcftools
hosts: localhost
vars:
vcftools_version: "0.1.16"
roles:
- role: alpha29.vcftools
become: yes
Development
# Setup:
git clone [email protected]:alpha29/ansible-role-alpha29-vcftools.git alpha29.vcftools
python3.7 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
molecule test
# Usage:
# Do this to monitor timing, show Ansible debug logging, and tell Molecule to keep the Docker container on completion
time molecule --debug test --destroy=never
# Faster iterative development:
# Verify that you don't have a running container.
docker ps -a
# Create one.
time molecule create
# Run some tests, which should fail.
time molecule verify
# Just run the playbook - skip linting, tests, et cetera
time molecule converge
# Make some changes, lather, rinse, repeat.
...
time molecule converge
time molecule verify
...
# When finished, tear it down.
time molecule destroy
# By default, all of the above runs against a Centos 7 Docker image.
# Use the MOLECULE_DISTRO environment variable to swap in other distros, e.g.:
time MOLECULE_DISTRO=ubuntu1804 molecule test
# NOTE: If you update requirements.yml, ***MAKE SURE*** you update meta/main.yml as well!
License
MIT