Jérémy Lecour
367bda528f
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|4867|51|4816|17|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/216//ansiblelint">Evolix » ansible-roles » unstable #216</a>
gitea/ansible-roles/pipeline/head This commit looks good
36 lines
814 B
YAML
36 lines
814 B
YAML
---
|
|
- name: No backports config in default sources.list
|
|
lineinfile:
|
|
dest: /etc/apt/sources.list.d/
|
|
regexp: "backports"
|
|
state: absent
|
|
tags:
|
|
- apt
|
|
|
|
- name: Backports sources list is installed
|
|
template:
|
|
src: '{{ ansible_distribution_release }}_backports.sources.j2'
|
|
dest: /etc/apt/sources.list.d/backports.sources
|
|
force: yes
|
|
mode: "0640"
|
|
register: apt_backports_sources
|
|
tags:
|
|
- apt
|
|
|
|
- name: Backports configuration
|
|
copy:
|
|
src: '{{ ansible_distribution_release }}_backports_preferences'
|
|
dest: /etc/apt/preferences.d/0-backports-defaults
|
|
force: yes
|
|
mode: "0640"
|
|
register: apt_backports_config
|
|
tags:
|
|
- apt
|
|
|
|
- name: Apt update
|
|
apt:
|
|
update_cache: yes
|
|
when: apt_backports_sources is changed or apt_backports_config is changed
|
|
tags:
|
|
- apt
|