Skip to content

Provisions perl environment plenv and carton. Tested with Centos (6 & 7), Fedora (24), Ubuntu (12.04, 14.04 & 16.04), Debian 8

Notifications You must be signed in to change notification settings

dmanto/ansible-plenv-and-carton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Provisions perl environment plenv and carton. Tested with Centos (6 & 7), Fedora (24), Ubuntu (12.04, 14.04 & 16.04), Debian 8

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published