Sun, 20 Mar 2016 11:01:50 -0400
Set devbox role dependencies
17 | 1 | --- |
2 | ||
3 | - name: add python-apt | |
4 | apt: name=python-apt state=installed | |
5 | ||
6 | # Not used here, but nice to have ready | |
7 | - name: add backports repo | |
8 | apt_repository: | |
9 | repo: "deb http://http.debian.net/debian {{ansible_distribution_release}}-backports main" | |
10 | tags: repos | |
11 | ||
12 | - name: add pgdg repo | |
13 | when: ansible_architecture in ['i386', 'x86_64'] | |
14 | apt_repository: | |
15 | repo: "deb http://apt.postgresql.org/pub/repos/apt/ {{ansible_distribution_release}}-pgdg main" | |
16 | tags: repos | |
17 | ||
18 | - name: apt upgrade | |
19 | apt: upgrade=yes update_cache=yes cache_valid_time=3600 | |
20 | tags: packages, upgrade | |
21 |