ansible_role_alpha29_raxml
ansible-role-alpha29-raxml
Installs raxml, a tool for phylogenetic analysis.
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.raxml
become: yes
Role Variables
You can override the following default settings as needed:
raxml_version: "8.2.12"
Dependencies
See requirements.yml for third-party role dependencies.
Example Playbook
---
- name: install raxml
hosts: localhost
vars:
raxml_version: "8.2.12"
roles:
- role: alpha29.raxml
become: yes
Development
# Setup:
git clone [email protected]:alpha29/ansible-role-alpha29-raxml.git alpha29.raxml
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