diff --git a/.travis.yml b/.travis.yml index 4f68091..5f490aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index 43412c4..23e3483 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ None --- - hosts: all roles: - - locales + - locales ``` #### License diff --git a/defaults/main.yml b/defaults/main.yml index 38fdd85..a7d6b01 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,5 +1,5 @@ ---- # defaults file for locales +--- locales_present: - en_US.UTF-8 diff --git a/handlers/main.yml b/handlers/main.yml index 1cd5c02..80e1bfd 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,4 +1,4 @@ ---- # handlers file for locales +--- - name: update locales command: dpkg-reconfigure --frontend noninteractive locales diff --git a/meta/main.yml b/meta/main.yml index 15da06d..19dfccb 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,5 +1,5 @@ ---- # meta file for locales +--- galaxy_info: author: Mischa ter Smitten company: Oefenweb.nl B.V. @@ -7,12 +7,12 @@ galaxy_info: 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: [] diff --git a/tasks/main.yml b/tasks/main.yml index 8462923..0907afe 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 diff --git a/tests/test.yml b/tests/test.yml index 07e2b3e..d282d0d 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -1,3 +1,4 @@ +# test file for locales --- - hosts: localhost remote_user: root diff --git a/tests/vagrant.yml b/tests/vagrant.yml index 32af2fe..6a7fe80 100644 --- a/tests/vagrant.yml +++ b/tests/vagrant.yml @@ -1,5 +1,5 @@ ---- # test file for locales +--- - hosts: all remote_user: vagrant sudo: true diff --git a/vars/main.yml b/vars/main.yml index 096c0a6..7b8fbdf 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -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' }}"