Skip to content

Commit

Permalink
Separate apt cache update and increase cache time.
Browse files Browse the repository at this point in the history
Use https to fetch cpanmin.
[skip ci]
  • Loading branch information
noplanman committed Jan 7, 2017
1 parent 74d9295 commit ce62eb9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tasks/install.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
---

- name: Lutim | Update apt cache
apt: update_cache=yes cache_valid_time=86400
changed_when: no

- name: Lutim | Install essential packages
apt: name="{{ item }}" state=present update_cache=yes cache_valid_time=3600
apt: name="{{ item }}" state=present
with_items:
- build-essential
- git
- libssl-dev

- name: Lutim | Install cpanm
get_url:
url: http://cpanmin.us
url: https://cpanmin.us
dest: /usr/local/bin/cpanm
mode: 0555

Expand Down

0 comments on commit ce62eb9

Please sign in to comment.