45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
- name: Update the apt package index
|
|
apt: # noqa 403 - we want to upgrade all packages to latest
|
|
name: "*"
|
|
state: latest
|
|
update_cache: yes
|
|
force_apt_get: yes
|
|
- name: Install packages for apt add repository over HTTPS
|
|
apt: # noqa 403 - we want to upgrade all packages to latest
|
|
name: "{{ packagesdep }}"
|
|
force_apt_get: yes
|
|
state: latest
|
|
update_cache: yes
|
|
vars:
|
|
packagesdep:
|
|
- git
|
|
- apt-transport-https
|
|
- ca-certificates
|
|
- wget
|
|
- software-properties-common
|
|
- gnupg2
|
|
- curl
|
|
- name: Add Apt signing key from official docker repo
|
|
apt_key:
|
|
url: https://download.docker.com/linux/debian/gpg
|
|
state: present
|
|
environment:
|
|
http_proxy: "{{ mmw_proxy|default('') }}"
|
|
https_proxy: "{{ mmw_proxy|default('') }}"
|
|
- name: add docker official repository for Debian Stretch
|
|
apt_repository:
|
|
repo: "deb [arch=amd64] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
|
|
state: present
|
|
- name: Index new repo into the cache
|
|
apt: # noqa 403 - we want to upgrade all packages to latest
|
|
name: "*"
|
|
state: latest
|
|
update_cache: yes
|
|
force_apt_get: yes
|
|
|
|
- name: Install python-selinux
|
|
apt:
|
|
state: present
|
|
name: "python3-selinux"
|
|
...
|