UsageΒΆ

  • To install and execute:
ansible-galaxy install constrict0r.unify
ansible localhost -m include_role -a name=constrict0r.unify -K
  • Passing variables:
ansible localhost -m include_role -a name=constrict0r.unify -K \
    -e "{items: [1, '/home/user/my-config.yml']}
  • To include the role on a playbook:
- hosts: servers
  roles:
      - {role: constrict0r.unify}
  • To include the role as dependency on another role:
dependencies:
  - role: constrict0r.unify
    items: [gemmata, muscaria]
  • To use the role from tasks:
- name: Execute role task.
  import_role:
    name: constrict0r.unify
  vars:
    items: [gemmata, muscaria]

To run tests:

cd unify
chmod +x testme.sh
./testme.sh

On some tests you may need to use sudo to succeed.