#!/bin/sh
# -*- mode: sh; fill-column: 75; tab-width: 8; coding: utf-8-unix -*-

prog=`basename $0 .bash`
PREFIX=/usr/local
[ -f /usr/local/etc/testforge/testforge.bash ] && \
  . /usr/local/etc/testforge/testforge.bash
ROLE=toxcore
[ -n "$KEYS_VAR_LOCAL" ] && PREFIX=$KEYS_VAR_LOCAL

TESTF_ANSIBLE_SRC=/o/data/TestForge/src/ansible

. /var/local/src/var_local_src.bash || exit 2

PKG=ansible-keepass
GIT_HUB=github.com
GIT_USER=Nekmo
GIT_DIR=ansible-keepass

[ -d $TESTF_ANSIBLE_SRC/lib/plugins/vars ] || \
    mkdir -p $TESTF_ANSIBLE_SRC/lib/plugins/vars

[ -s $TESTF_ANSIBLE_SRC/lib/plugins/vars/ansible_keepass.py ] || \
    wget $BASE_WGET_ARGS \
      -O $TESTF_ANSIBLE_SRC/lib/plugins/vars/ansible_keepass.py \
      https://raw.githubusercontent.com/$GIT_USER/$GIT_DIR/master/$PKG.py \

exit 0
