Skip to content

Commit

Permalink
Aesthetics & fix ansible 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pjan committed Mar 11, 2014
1 parent 7ae038b commit dec80ac
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python-apt python-pycurl
install:
- pip install ansible
- pip install ansible==1.5.0
script:
- echo localhost > inventory
- ansible-playbook --syntax-check -i inventory test.yml
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Licensed under the MIT License. See the LICENSE file for details.
#### Feedback, bug-reports, requests, ...
Are [welcome](https://github.com/ansibles/xxx/issues)!
Are [welcome](https://github.com/ansibles/apt/issues)!
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# file: apt/defaults/main.yml

apt_cache_valid_time: 3600
apt_install_recommends: false
apt_install_suggests: false
apt_install_recommends: true
apt_install_suggests: true
29 changes: 15 additions & 14 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,29 @@

- name: Aptitude | Update the sources list (/etc/apt/sources.list)
copy:
src=etc_apt_sources.list
dest=/etc/apt/sources.list
owner=root
group=root
mode=0644
src: etc_apt_sources.list
dest: /etc/apt/sources.list
owner: root
group: root
mode: 0644

- name: Aptitude | Update the apt cache
apt:
update_cache=yes
cache_valid_time="{{ apt_cache_valid_time }}"
update_cache: yes
cache_valid_time: "{{apt_cache_valid_time}}"

- name: Aptitude | Update the general configuration (/etc/apt/apt.conf.ds/10general)
template:
src=etc_apt_apt.conf.d_10general.j2
dest=/etc/apt/apt.conf.d/10general
owner=root
group=root
mode=0644
src: etc_apt_apt.conf.d_10general.j2
dest: /etc/apt/apt.conf.d/10general
owner: root
group: root
mode: 0644

- name: Aptitude | Make sure the required packages are installed
apt:
pkg="{{ item }}"
state=present
pkg: "{{item}}"
state: present
with_items:
- python-apt
- unattended-upgrades

0 comments on commit dec80ac

Please sign in to comment.