diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-07-23 13:17:56 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-07-23 13:17:56 +0200 |
commit | 67f5d1008eef96f13dbf8910092155b7aa1bcee4 (patch) | |
tree | 00901863a6ab5c24c3e5616a9d4308499810c568 /terraform/ansible/roles/packages/tasks | |
parent | ba76764c198e9232b3152568008d5aa5199a1fd0 (diff) | |
download | k8s-sandbox-67f5d1008eef96f13dbf8910092155b7aa1bcee4.tar.gz k8s-sandbox-67f5d1008eef96f13dbf8910092155b7aa1bcee4.tar.bz2 k8s-sandbox-67f5d1008eef96f13dbf8910092155b7aa1bcee4.tar.xz k8s-sandbox-67f5d1008eef96f13dbf8910092155b7aa1bcee4.zip |
o Merging in Terraform setup.
Diffstat (limited to 'terraform/ansible/roles/packages/tasks')
-rw-r--r-- | terraform/ansible/roles/packages/tasks/main.yml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/terraform/ansible/roles/packages/tasks/main.yml b/terraform/ansible/roles/packages/tasks/main.yml new file mode 100644 index 0000000..a6b990a --- /dev/null +++ b/terraform/ansible/roles/packages/tasks/main.yml @@ -0,0 +1,54 @@ +--- +- name: configure debian repositories + notify: update apt cache + copy: + dest: /etc/apt/sources.list + content: "{{ versions[packages__version] }}" + vars: + versions: + stretch: | + deb http://ftp.no.debian.org/debian/ stretch main contrib non-free + deb-src http://ftp.no.debian.org/debian/ stretch main contrib non-free + + deb http://security.debian.org/debian-security stretch/updates main contrib non-free + deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free + + deb http://ftp.no.debian.org/debian/ stretch-updates main contrib non-free + deb-src http://ftp.no.debian.org/debian/ stretch-updates main contrib non-free + + {{ '' if packages__enable_backports else '#' }}deb http://ftp.no.debian.org/debian/ stretch-backports main contrib non-free + {{ '' if packages__enable_backports else '#' }}deb-src http://ftp.no.debian.org/debian/ stretch-backports main contrib non-free + jessie: | + deb http://ftp.no.debian.org/debian/ jessie main contrib non-free + deb-src http://ftp.no.debian.org/debian/ jessie main contrib non-free + + deb http://security.debian.org/debian-security jessie/updates main contrib non-free + deb-src http://security.debian.org/debian-security jessie/updates main contrib non-free + + deb http://ftp.no.debian.org/debian/ jessie-updates main contrib non-free + deb-src http://ftp.no.debian.org/debian/ jessie-updates main contrib non-free + + {{ '' if packages__enable_backports else '#' }}deb http://ftp.no.debian.org/debian/ jessie-backports main contrib non-free + {{ '' if packages__enable_backports else '#' }}deb-src http://ftp.no.debian.org/debian/ jessie-backports main contrib non-free + unstable: | + deb http://ftp.no.debian.org/debian/ unstable main contrib non-free + deb-src http://ftp.no.debian.org/debian/ unstable main contrib non-free + sid: | + deb http://ftp.no.debian.org/debian/ sid main contrib non-free + deb-src http://ftp.no.debian.org/debian/ sid main contrib non-free + +- name: Enable backports repository by default + when: packages__enable_backports + copy: + dest: /etc/apt/preferences.d/bitraf-packages + content: | + Package: * + Pin: release a=stretch-backports + Pin-Priority: 500 + +- meta: flush_handlers + +- name: install debian packages + apt: + name: "{{ packages_packages }}" + install_recommends: no |