Skip to content

Commit

Permalink
Apt cache valid optimization
Browse files Browse the repository at this point in the history
And consistency changes
  • Loading branch information
tersmitten committed Jul 30, 2015
1 parent 34df85e commit c55eb41
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 14 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ python: "2.7"

env:
- ANSIBLE_VERSION=latest
- ANSIBLE_VERSION=1.9.2
- ANSIBLE_VERSION=1.9.1
- ANSIBLE_VERSION=1.9.0.1
- ANSIBLE_VERSION=1.8.4
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ None
---
- hosts: all
roles:
- locales
- locales
```
#### License
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# defaults file for locales
---
locales_present:
- en_US.UTF-8

Expand Down
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
# handlers file for locales
---
- name: update locales
command: dpkg-reconfigure --frontend noninteractive locales
16 changes: 8 additions & 8 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
# meta file for locales
---
galaxy_info:
author: Mischa ter Smitten
company: Oefenweb.nl B.V.
description: Set locales on Debian-like systems
license: MIT
min_ansible_version: 1.6
platforms:
- name: Ubuntu
versions:
- all
- name: Debian
versions:
- all
- name: Ubuntu
versions:
- all
- name: Debian
versions:
- all
categories:
- system
- system
dependencies: []
4 changes: 3 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
# tasks file for locales
---
- name: install
apt:
name: locales
state: latest
update_cache: true
cache_valid_time: 3600
tags: [configuration, locales, locales-install]

- name: install (specified) language packs
Expand Down
1 change: 1 addition & 0 deletions tests/test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# test file for locales
---
- hosts: localhost
remote_user: root
Expand Down
2 changes: 1 addition & 1 deletion tests/vagrant.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# test file for locales
---
- hosts: all
remote_user: vagrant
sudo: true
Expand Down
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
# vars file for locales
---
locales_gen_file: "{{ '/var/lib/locales/supported.d/local' if ansible_distribution == 'Ubuntu' else '/etc/locale.gen' }}"

0 comments on commit c55eb41

Please sign in to comment.