plenv-and-carton

Ansible Role: install plenv and Carton

Build Status

Installs Perl development / production environment tools (plenv and Carton) for RedHat/CentOS and Debian/Ubuntu linux servers.

Requirements

None.

Role Variables

  • 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

Dependencies

None.

Example Playbook (creates user username, dir /home/username if not exists, with local perl 5.20.2)

- 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

License

MIT / BSD

Author Information

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

About

Installs perl dev & production environment, whith plenv and Carton

Install
ansible-galaxy install dmanto/ansible-plenv-and-carton
GitHub repository
License
Unknown
Downloads
552
Owner
Electrical and Electronic Engineer, C/C++/Perl & Javascript programmer