Add tags and rename keys, it's taken by ansible

This commit is contained in:
Alex 2020-05-28 17:12:04 +02:00
parent 0342a83b7c
commit 9c31de8561
Signed by: caskd
GPG Key ID: F92BA85F61F4C173

View File

@ -1,16 +1,17 @@
- name: Add keys - name: Add keys
loop: "{{ apt.keys }}" loop: "{{ apt.sign_keys }}"
apt_key: apt_key:
url: "{{ item }}" url: '{{ item }}'
tags: tags:
- packages
- apt - apt
when: (apt.keys| default([])) | length when: (apt.sign_keys| default([])) | length
- name: Add repositories - name: Add repositories
loop: "{{ apt.repos }}" loop: "{{ apt.repos }}"
apt_repository: apt_repository:
repo: 'deb {{ item.repo }}' repo: 'deb {{ item.repo }}'
filename: '{{ item.file }}' filename: '{{ item.file }}'
tags:
- apt
when: (apt.repos| default([])) | length when: (apt.repos| default([])) | length
- name: Install packages - name: Install packages
loop: "{{ apt.packages }}" loop: "{{ apt.packages }}"
@ -28,6 +29,7 @@
name: "*" name: "*"
state: latest state: latest
tags: tags:
- apt
- packages - packages
when: (apt.upgrade| default(false)) when: (apt.upgrade| default(false))
- name: Clean up unused dependencies and packages - name: Clean up unused dependencies and packages
@ -35,5 +37,6 @@
autoremove: yes autoremove: yes
autoclean: yes autoclean: yes
tags: tags:
- apt
- packages - packages
when: (apt.clean| default(false)) when: (apt.clean| default(false))