apt: add task file to install ELTS repository (default: False)
This commit is contained in:
parent
db63902206
commit
6c0ca02391
7 changed files with 57 additions and 2 deletions
|
@ -14,6 +14,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
|||
### Added
|
||||
|
||||
* Preliminary work for php83
|
||||
* apt: add task file to install ELTS repository (default: False)
|
||||
* lxc-php: Allow one to install php83 on Bookworm container
|
||||
* nagios-nrpe: add check_sentinel for monitoring Redis Sentinel
|
||||
* webapps/nextcloud: Added var nextcloud_user_uid to enforce uid for nextcloud user
|
||||
|
|
|
@ -14,6 +14,7 @@ apt_install_backports: False
|
|||
apt_backports_components: "main"
|
||||
|
||||
apt_install_evolix_public: True
|
||||
apt_install_extended_lts: False
|
||||
|
||||
apt_clean_gandi_sourceslist: False
|
||||
|
||||
|
@ -28,4 +29,4 @@ apt_check_hold_cron_weekday: "*"
|
|||
apt_check_hold_cron_day: "*"
|
||||
apt_check_hold_cron_month: "*"
|
||||
|
||||
apt_keyring_dir: "{{ ansible_distribution_major_version is version('12', '<') | ternary('/etc/apt/trusted.gpg.d', '/etc/apt/keyrings') }}"
|
||||
apt_keyring_dir: "{{ ansible_distribution_major_version is version('12', '<') | ternary('/etc/apt/trusted.gpg.d', '/etc/apt/keyrings') }}"
|
||||
|
|
BIN
apt/files/freexian-archive-extended-lts.gpg
Normal file
BIN
apt/files/freexian-archive-extended-lts.gpg
Normal file
Binary file not shown.
37
apt/tasks/extended-lts.oneline.yml.yml
Normal file
37
apt/tasks/extended-lts.oneline.yml.yml
Normal file
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
|
||||
- name: "Ensure {{ apt_keyring_dir }} directory exists"
|
||||
file:
|
||||
path: "{{ apt_keyring_dir }}"
|
||||
state: directory
|
||||
mode: "755"
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Add Evolix GPG key
|
||||
ansible.builtin.copy:
|
||||
src: "freexian-archive-extended-lts.gpg"
|
||||
dest: "{{ apt_keyring_dir }}/freexian-archive-extended-lts.gpg"
|
||||
force: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
tags:
|
||||
- apt
|
||||
|
||||
- name: ELTS list is installed
|
||||
ansible.builtin.template:
|
||||
src: "{{ ansible_distribution_release }}_extended-lts.list.j2"
|
||||
dest: /etc/apt/sources.list.d/extended-lts.list
|
||||
force: true
|
||||
mode: "0640"
|
||||
register: apt_extended_lts
|
||||
tags:
|
||||
- apt
|
||||
|
||||
- name: Apt update
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
tags:
|
||||
- apt
|
||||
when: apt_extended_lts is changed
|
|
@ -80,6 +80,14 @@
|
|||
- apt_install_evolix_public | bool
|
||||
- ansible_distribution_major_version is version('12', '>=')
|
||||
|
||||
- name: Install Extended-LTS repositories (Debian < 10)
|
||||
ansible.builtin.import_tasks: extended-lts.oneline.yml.yml
|
||||
tags:
|
||||
- apt
|
||||
when:
|
||||
- apt_install_extended_lts | bool
|
||||
- ansible_distribution_major_version is version('10', '<')
|
||||
|
||||
- name: Clean GANDI sources
|
||||
ansible.builtin.file:
|
||||
path: '{{ item }}'
|
||||
|
@ -126,4 +134,4 @@
|
|||
upgrade: dist
|
||||
when: apt_upgrade | bool
|
||||
tags:
|
||||
- apt
|
||||
- apt
|
||||
|
|
4
apt/templates/jessie_extended-lts.list.j2
Normal file
4
apt/templates/jessie_extended-lts.list.j2
Normal file
|
@ -0,0 +1,4 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
deb [signed-by="{{ apt_keyring_dir }}/freexian-archive-extended-lts.gpg"] http://elts.evolix.org/extended-lts jessie main
|
||||
deb [signed-by="{{ apt_keyring_dir }}/freexian-archive-extended-lts.gpg"] http://elts.evolix.org/extended-lts jessie-lts main
|
4
apt/templates/stretch_extended-lts.list.j2
Normal file
4
apt/templates/stretch_extended-lts.list.j2
Normal file
|
@ -0,0 +1,4 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
deb [signed-by="{{ apt_keyring_dir }}/freexian-archive-extended-lts.gpg"] http://elts.evolix.org/extended-lts stretch main
|
||||
deb [signed-by="{{ apt_keyring_dir }}/freexian-archive-extended-lts.gpg"] http://elts.evolix.org/extended-lts stretch-lts main
|
Loading…
Reference in a new issue