roles/repositories/tasks/debian.yml

changeset 32
70eb0f5478d8
parent 21
92716e2eba34
child 48
af865a84224a
equal deleted inserted replaced
31:9773f51c2d57 32:70eb0f5478d8
1 --- 1 ---
2 2
3 - name: add python-apt 3 - name: add python-apt
4 apt: name=python-apt state=installed 4 apt: name=python-apt state=installed
5 5
6 # Not used here, but nice to have ready 6 - include: debian-stable.yml
7 - name: add backports repo 7 when: ansible_distribution_release != 'NA'
8 apt_repository:
9 repo: "deb http://http.debian.net/debian {{ansible_distribution_release}}-backports main"
10 tags: repos 8 tags: repos
11 9
12 - name: add pgdg repo 10 - include: debian-testing.yml
13 when: ansible_architecture in ["i386", "x86_64"] 11 when: ansible_distribution_release == 'NA'
14 apt_repository:
15 repo: "deb http://apt.postgresql.org/pub/repos/apt/ {{ansible_distribution_release}}-pgdg main"
16 tags: repos 12 tags: repos
17 13
18 - name: apt upgrade 14 - name: apt upgrade
19 apt: upgrade=yes update_cache=yes cache_valid_time=3600 15 apt: upgrade=yes update_cache=yes cache_valid_time=3600
20 tags: packages, upgrade 16 tags: packages, upgrade
21

mercurial