Installs Perl development / production environment tools (plenv and Carton) for RedHat/CentOS and Debian/Ubuntu linux servers.
None.
- plenv_local
default is "5.24.1"
overwrite other vars file if you want to use other version
- app_user
default is "vagrant"
username of application user
None.
- hosts: servers
roles:
- { role: dmanto.plenv-and-carton, app_user: "username", plenv_local: "5.20.2"}
- cron or daemon
use templates/env.j2 if use perl script with daemon and cron
- crontab
SCRIPT=/path/to/env
* * * * $SCRIPT plenv exec perl script.pl
MIT / BSD
This role was mainly inspired by ansible-role-java role written by Jeff Geerling, author of Ansible for DevOps, and swfz.plenv ansible role forked from github.
Author: Daniel Mantovani 2017-2020