roles/repositories/tasks/debian.yml

changeset 17
d0d9fdf1f9d3
child 21
92716e2eba34
equal deleted inserted replaced
16:c781422f639f 17:d0d9fdf1f9d3
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

mercurial