bench icon indicating copy to clipboard operation
bench copied to clipboard

Use requirements.yml file for installing Ansible Roles

Open achillesrasquinha opened this issue 6 years ago • 2 comments

Link

:smile:

Will help to remove many Ansible Roles currently existent. And update to latest. Can reinstall during bench update.

achillesrasquinha avatar Jun 11 '18 19:06 achillesrasquinha

path  = osp.join('<PATH_TO_PLAYBOOKS_DIR>', 'requirements.yml')
popen("{galaxy} install -r {requirements}".format(
    galaxy       = which('ansible-galaxy', raise_err = True),
    requirements = path
))

achillesrasquinha avatar Jun 11 '18 19:06 achillesrasquinha

Perhaps switching to pipenv will also make sense?

ceefour avatar Oct 03 '20 12:10 ceefour