Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Latest commit

 

History

History
16 lines (12 loc) · 648 Bytes

HACKING.md

File metadata and controls

16 lines (12 loc) · 648 Bytes

HACKING.md

Generally, new roles should be created using ansible-role-template, using Ansible Galaxy and Travis CI as detailed here (only visible to CyVerse staff).

Quickly test a role against localhost without any variables/hosts/etc

First navigate into the role's main folder and run:

ANSIBLE_NOCOWS=1 ANSIBLE_ROLES_PATH="$(pwd)/.." ansible-playbook /dev/stdin -i "localhost," -c local <<EOF
---
- hosts: localhost
  roles:
      - $(basename $(pwd))
EOF