Compare commits
4 commits
stable
...
backports_
Author | SHA1 | Date | |
---|---|---|---|
f92da7bdc4 | |||
c6ee7be329 | |||
6d3fafb294 | |||
6fb3eefde9 |
|
@ -1,3 +0,0 @@
|
|||
Package: *
|
||||
Pin: release a=bookworm-backports
|
||||
Pin-Priority: 50
|
|
@ -1,3 +0,0 @@
|
|||
Package: *
|
||||
Pin: release a=bullseye-backports
|
||||
Pin-Priority: 50
|
|
@ -1,3 +0,0 @@
|
|||
Package: *
|
||||
Pin: release a=buster-backports
|
||||
Pin-Priority: 50
|
|
@ -1,3 +0,0 @@
|
|||
Package: *
|
||||
Pin: release a=jessie-backports
|
||||
Pin-Priority: 50
|
|
@ -1,3 +0,0 @@
|
|||
Package: *
|
||||
Pin: release a=stretch-backports
|
||||
Pin-Priority: 50
|
|
@ -10,19 +10,9 @@
|
|||
tags:
|
||||
- apt
|
||||
|
||||
- name: Backports configuration
|
||||
ansible.builtin.copy:
|
||||
src: '{{ ansible_distribution_release }}_backports_preferences'
|
||||
dest: /etc/apt/preferences.d/0-backports-defaults
|
||||
force: true
|
||||
mode: "0640"
|
||||
register: apt_backports_config
|
||||
tags:
|
||||
- apt
|
||||
|
||||
- name: Apt update
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
when: apt_backports_sources is changed or apt_backports_config is changed
|
||||
when: apt_backports_sources is changed
|
||||
tags:
|
||||
- apt
|
||||
|
|
|
@ -17,16 +17,6 @@
|
|||
tags:
|
||||
- apt
|
||||
|
||||
- name: Backports configuration
|
||||
ansible.builtin.copy:
|
||||
src: '{{ ansible_distribution_release }}_backports_preferences'
|
||||
dest: /etc/apt/preferences.d/0-backports-defaults
|
||||
force: true
|
||||
mode: "0640"
|
||||
register: apt_backports_config
|
||||
tags:
|
||||
- apt
|
||||
|
||||
- name: Archived backport are accepted (jessie)
|
||||
ansible.builtin.lineinfile:
|
||||
dest: '/etc/apt/apt.conf.d/99no-check-valid-until'
|
||||
|
@ -42,4 +32,4 @@
|
|||
update_cache: yes
|
||||
tags:
|
||||
- apt
|
||||
when: apt_backports_list is changed or apt_backports_config is changed
|
||||
when: apt_backports_list is changed
|
||||
|
|
|
@ -8,10 +8,6 @@ describe file("/etc/apt/sources.list.d/backports.list") do
|
|||
it { should be_file }
|
||||
end
|
||||
|
||||
describe file("/etc/apt/preferences.d/0-backports-defaults") do
|
||||
it { should be_file }
|
||||
end
|
||||
|
||||
describe command("grep 'main contrib non-free' /etc/apt/sources.list.d/backports.list") do
|
||||
its(:stdout) { should_not be_empty }
|
||||
its(:exit_status) { should eq 0 }
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
Package: certbot python-certbot python-acme python-cryptography python-openssl python-setuptools python-ndg-httpsclient python-pyasn1 python-pkg-resources
|
||||
Pin: release a=jessie-backports
|
||||
Pin-Priority: 999
|
|
@ -8,10 +8,6 @@ set :backend, :exec
|
|||
# it { should be_file }
|
||||
# end
|
||||
#
|
||||
# describe file("/etc/apt/preferences.d/0-backports-defaults") do
|
||||
# it { should be_file }
|
||||
# end
|
||||
#
|
||||
# describe command("grep 'main contrib non-free' /etc/apt/sources.list.d/backports.list") do
|
||||
# its(:stdout) { should_not be_empty }
|
||||
# its(:exit_status) { should eq 0 }
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
ansible.builtin.apt:
|
||||
name: "{{ nginx_package_name | default(nginx_default_package_name) }}"
|
||||
state: present
|
||||
default_release: "{{ ansible_distribution_release }}-backports"
|
||||
tags:
|
||||
- nginx
|
||||
- packages
|
||||
|
|
|
@ -8,17 +8,6 @@
|
|||
- nginx
|
||||
- packages
|
||||
|
||||
- name: Prefer Nginx packages from backports
|
||||
ansible.builtin.template:
|
||||
src: apt/nginx_preferences
|
||||
dest: /etc/apt/preferences.d/999-nginx
|
||||
force: true
|
||||
mode: "0640"
|
||||
register: nginx_apt_preferences
|
||||
tags:
|
||||
- nginx
|
||||
- packages
|
||||
|
||||
- name: APT cache is updated
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
Package: nginx nginx-* libnginx-* libssl*
|
||||
Pin: release a={{ ansible_distribution_release }}-backports
|
||||
Pin-Priority: 999
|
|
@ -11,18 +11,18 @@
|
|||
tasks_from: backports.yml
|
||||
when: ansible_distribution_major_version is version('10', '=')
|
||||
|
||||
- name: Prefer phpMyAdmin package from backports (Debian 10)
|
||||
ansible.builtin.template:
|
||||
src: phpmyadmin_apt_preferences.j2
|
||||
dest: /etc/apt/preferences.d/999-phpmyadmin
|
||||
force: true
|
||||
mode: "0644"
|
||||
- name: Install phpmyadmin from backports (Debian 10)
|
||||
ansible.builtin.apt:
|
||||
name: phpmyadmin
|
||||
default_release: buster-backports
|
||||
update_cache: yes
|
||||
when: ansible_distribution_major_version is version('10', '=')
|
||||
|
||||
- name: Install phpmyadmin
|
||||
ansible.builtin.apt:
|
||||
name: phpmyadmin
|
||||
update_cache: yes
|
||||
when: ansible_distribution_major_version is not version('10', '=')
|
||||
|
||||
- name: Check if phpmyadmin default configuration is present
|
||||
ansible.builtin.stat:
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
Package: phpmyadmin php-twig
|
||||
Pin: release a=buster-backports
|
||||
Pin-Priority: 999
|
Loading…
Reference in a new issue