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:
|
tags:
|
||||||
- apt
|
- 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
|
- name: Apt update
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
when: apt_backports_sources is changed or apt_backports_config is changed
|
when: apt_backports_sources is changed
|
||||||
tags:
|
tags:
|
||||||
- apt
|
- apt
|
||||||
|
|
|
@ -17,16 +17,6 @@
|
||||||
tags:
|
tags:
|
||||||
- apt
|
- 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)
|
- name: Archived backport are accepted (jessie)
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
dest: '/etc/apt/apt.conf.d/99no-check-valid-until'
|
dest: '/etc/apt/apt.conf.d/99no-check-valid-until'
|
||||||
|
@ -42,4 +32,4 @@
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
tags:
|
tags:
|
||||||
- apt
|
- 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 }
|
it { should be_file }
|
||||||
end
|
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
|
describe command("grep 'main contrib non-free' /etc/apt/sources.list.d/backports.list") do
|
||||||
its(:stdout) { should_not be_empty }
|
its(:stdout) { should_not be_empty }
|
||||||
its(:exit_status) { should eq 0 }
|
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 }
|
# it { should be_file }
|
||||||
# end
|
# 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
|
# describe command("grep 'main contrib non-free' /etc/apt/sources.list.d/backports.list") do
|
||||||
# its(:stdout) { should_not be_empty }
|
# its(:stdout) { should_not be_empty }
|
||||||
# its(:exit_status) { should eq 0 }
|
# its(:exit_status) { should eq 0 }
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: "{{ nginx_package_name | default(nginx_default_package_name) }}"
|
name: "{{ nginx_package_name | default(nginx_default_package_name) }}"
|
||||||
state: present
|
state: present
|
||||||
|
default_release: "{{ ansible_distribution_release }}-backports"
|
||||||
tags:
|
tags:
|
||||||
- nginx
|
- nginx
|
||||||
- packages
|
- packages
|
||||||
|
|
|
@ -8,17 +8,6 @@
|
||||||
- nginx
|
- nginx
|
||||||
- packages
|
- 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
|
- name: APT cache is updated
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: yes
|
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
|
tasks_from: backports.yml
|
||||||
when: ansible_distribution_major_version is version('10', '=')
|
when: ansible_distribution_major_version is version('10', '=')
|
||||||
|
|
||||||
- name: Prefer phpMyAdmin package from backports (Debian 10)
|
- name: Install phpmyadmin from backports (Debian 10)
|
||||||
ansible.builtin.template:
|
ansible.builtin.apt:
|
||||||
src: phpmyadmin_apt_preferences.j2
|
name: phpmyadmin
|
||||||
dest: /etc/apt/preferences.d/999-phpmyadmin
|
default_release: buster-backports
|
||||||
force: true
|
update_cache: yes
|
||||||
mode: "0644"
|
|
||||||
when: ansible_distribution_major_version is version('10', '=')
|
when: ansible_distribution_major_version is version('10', '=')
|
||||||
|
|
||||||
- name: Install phpmyadmin
|
- name: Install phpmyadmin
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: phpmyadmin
|
name: phpmyadmin
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
when: ansible_distribution_major_version is not version('10', '=')
|
||||||
|
|
||||||
- name: Check if phpmyadmin default configuration is present
|
- name: Check if phpmyadmin default configuration is present
|
||||||
ansible.builtin.stat:
|
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