Fix: remove loop for apt

This commit is contained in:
Bertrand Benjamin 2020-02-24 07:06:06 +01:00
parent a5ba3cc48a
commit 09c89e092a
2 changed files with 25 additions and 28 deletions

View File

@ -6,9 +6,7 @@
- name: Install base CLI packages
apt:
name: "{{ item }}"
state: present
with_items:
name:
- sudo
- wget
- curl
@ -26,6 +24,7 @@
- glances
- ranger
- rxvt-unicode-256color
state: present
- name: Install extra CLI packages
apt:

View File

@ -1,20 +1,18 @@
---
- name: Remove depot docker version
apt:
name: "{{ item }}"
state: absent
with_items:
name:
- docker
- docker-engine
- docker.io
state: absent
- name: Install tool to use apt with https
apt:
name: "{{ item }}"
state: present
with_items:
name:
- apt-transport-https
- ca-certificates
state: present
- name: Add Docker apt key.
apt_key: