Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (28 sloc) 862 Bytes
- name: Check Installed Perl
become: yes
become_user: isucon
args:
chdir: /home/isucon
command: /home/isucon/local/perl/bin/perl -V:version
register: perl_version_output
changed_when: perl_version_output is failed
ignore_errors: true
- name: Debug perl_version_output
debug:
var: perl_version_output
- name: Install Perl 5.30.0
become: yes
become_user: isucon
when: perl_version_output is failed or perl_version_output.stdout != "version='5.30.0';"
args:
chdir: /home/isucon
command: |
/home/isucon/xbuild/perl-install 5.30.0 /home/isucon/local/perl -- "-j {{ nproc | default('1') }}"
- name: Add PATH for Perl
become: yes
become_user: isucon
blockinfile:
marker: "# {mark} ANSIBLE MANAGED BLOCK perl"
dest: /home/isucon/.bash_profile
content: |
export PATH=/home/isucon/local/perl/bin:$PATH
You can’t perform that action at this time.