Install deb822 sources on Debian >=12
parent
f1644ed138
commit
45e8132d07
@ -0,0 +1,36 @@
|
||||
---
|
||||
- name: APT https transport is enabled (Debian <10)
|
||||
ansible.builtin.apt:
|
||||
name: apt-transport-https
|
||||
state: present
|
||||
when: ansible_distribution_major_version is version('10', '<')
|
||||
|
||||
- name: Elastic GPG key is installed
|
||||
ansible.builtin.copy:
|
||||
src: elastic.asc
|
||||
dest: "{{ apt_keyring_dir }}/elastic.asc"
|
||||
force: yes
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Add Elastic repository (Debian <12)
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [signed-by={{ apt_keyring_dir }}/elastic.asc] https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt stable main"
|
||||
filename: elastic
|
||||
state: present
|
||||
update_cache: yes
|
||||
when: ansible_distribution_major_version is version('12', '<')
|
||||
|
||||
- name: Add Elastic repository (Debian >=12)
|
||||
ansible.builtin.template:
|
||||
src: elastic.sources.j2
|
||||
dest: /etc/apt/sources.list.d/elastic.sources
|
||||
state: present
|
||||
register: elastic_sources
|
||||
when: ansible_distribution_major_version is version('12', '>=')
|
||||
|
||||
- name: Update APT cache
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
when: elastic_sources is changed
|
@ -0,0 +1,8 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Types: deb
|
||||
URIs: https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt
|
||||
Suites: stable
|
||||
Components: main
|
||||
Signed-by: {{ apt_keyring_dir }}/elastic.asc
|
||||
Enabled: yes
|
@ -0,0 +1,36 @@
|
||||
---
|
||||
- name: APT https transport is enabled (Debian <10)
|
||||
ansible.builtin.apt:
|
||||
name: apt-transport-https
|
||||
state: present
|
||||
when: ansible_distribution_major_version is version('10', '<')
|
||||
|
||||
- name: Elastic GPG key is installed
|
||||
ansible.builtin.copy:
|
||||
src: elastic.asc
|
||||
dest: "{{ apt_keyring_dir }}/elastic.asc"
|
||||
force: yes
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Add Elastic repository (Debian <12)
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [signed-by={{ apt_keyring_dir }}/elastic.asc] https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt stable main"
|
||||
filename: elastic
|
||||
state: present
|
||||
update_cache: yes
|
||||
when: ansible_distribution_major_version is version('12', '<')
|
||||
|
||||
- name: Add Elastic repository (Debian >=12)
|
||||
ansible.builtin.template:
|
||||
src: elastic.sources.j2
|
||||
dest: /etc/apt/sources.list.d/elastic.sources
|
||||
state: present
|
||||
register: elastic_sources
|
||||
when: ansible_distribution_major_version is version('12', '>=')
|
||||
|
||||
- name: Update APT cache
|
||||
apt:
|
||||
update_cache: yes
|
||||
when: elastic_sources is changed
|
@ -0,0 +1,8 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Types: deb
|
||||
URIs: https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt
|
||||
Suites: stable
|
||||
Components: main
|
||||
Signed-by: {{ apt_keyring_dir }}/elastic.asc
|
||||
Enabled: yes
|
@ -0,0 +1,8 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Types: deb
|
||||
URIs: http://packages.treasuredata.com/3/debian/{{ ansible_distribution_release }}/
|
||||
Suites: {{ ansible_distribution_release }}
|
||||
Components: contrib
|
||||
Signed-by: {{ apt_keyring_dir }}/treasuredata.asc
|
||||
Enabled: yes
|
@ -0,0 +1,7 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Types: deb
|
||||
URIs: http://pkg.jenkins-ci.org/debian-stable
|
||||
Suites: binary/
|
||||
Signed-by: {{ apt_keyring_dir }}/jenkins.asc
|
||||
Enabled: yes
|
@ -0,0 +1,36 @@
|
||||
---
|
||||
- name: APT https transport is enabled (Debian <10)
|
||||
ansible.builtin.apt:
|
||||
name: apt-transport-https
|
||||
state: present
|
||||
when: ansible_distribution_major_version is version('10', '<')
|
||||
|
||||
- name: Elastic GPG key is installed
|
||||
ansible.builtin.copy:
|
||||
src: elastic.asc
|
||||
dest: "{{ apt_keyring_dir }}/elastic.asc"
|
||||
force: yes
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Add Elastic repository (Debian <12)
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [signed-by={{ apt_keyring_dir }}/elastic.asc] https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt stable main"
|
||||
filename: elastic
|
||||
state: present
|
||||
update_cache: yes
|
||||
when: ansible_distribution_major_version is version('12', '<')
|
||||
|
||||
- name: Add Elastic repository (Debian >=12)
|
||||
ansible.builtin.template:
|
||||
src: elastic.sources.j2
|
||||
dest: /etc/apt/sources.list.d/elastic.sources
|
||||
state: present
|
||||
register: elastic_sources
|
||||
when: ansible_distribution_major_version is version('12', '>=')
|
||||
|
||||
- name: Update APT cache
|
||||
apt:
|
||||
update_cache: yes
|
||||
when: elastic_sources is changed
|
@ -0,0 +1,8 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Types: deb
|
||||
URIs: https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt
|
||||
Suites: stable
|
||||
Components: main
|
||||
Signed-by: {{ apt_keyring_dir }}/elastic.asc
|
||||
Enabled: yes
|
@ -0,0 +1,36 @@
|
||||
---
|
||||
- name: APT https transport is enabled (Debian <10)
|
||||
ansible.builtin.apt:
|
||||
name: apt-transport-https
|
||||
state: present
|
||||
when: ansible_distribution_major_version is version('10', '<')
|
||||
|
||||
- name: Elastic GPG key is installed
|
||||
ansible.builtin.copy:
|
||||
src: elastic.asc
|
||||
dest: "{{ apt_keyring_dir }}/elastic.asc"
|
||||
force: yes
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Add Elastic repository (Debian <12)
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [signed-by={{ apt_keyring_dir }}/elastic.asc] https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt stable main"
|
||||
filename: elastic
|
||||
state: present
|
||||
update_cache: yes
|
||||
when: ansible_distribution_major_version is version('12', '<')
|
||||
|
||||
- name: Add Elastic repository (Debian >=12)
|
||||
ansible.builtin.template:
|
||||
src: elastic.sources.j2
|
||||
dest: /etc/apt/sources.list.d/elastic.sources
|
||||
state: present
|
||||
register: elastic_sources
|
||||
when: ansible_distribution_major_version is version('12', '>=')
|
||||
|
||||
- name: Update APT cache
|
||||
apt:
|
||||
update_cache: yes
|
||||
when: elastic_sources is changed
|
@ -0,0 +1,8 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Types: deb
|
||||
URIs: https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt
|
||||
Suites: stable
|
||||
Components: main
|
||||
Signed-by: {{ apt_keyring_dir }}/elastic.asc
|
||||
Enabled: yes
|
@ -0,0 +1,36 @@
|
||||
---
|
||||
- name: APT https transport is enabled (Debian <10)
|
||||
ansible.builtin.apt:
|
||||
name: apt-transport-https
|
||||
state: present
|
||||
when: ansible_distribution_major_version is version('10', '<')
|
||||
|
||||
- name: Elastic GPG key is installed
|
||||
ansible.builtin.copy:
|
||||
src: elastic.asc
|
||||
dest: "{{ apt_keyring_dir }}/elastic.asc"
|
||||
force: yes
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Add Elastic repository (Debian <12)
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [signed-by={{ apt_keyring_dir }}/elastic.asc] https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt stable main"
|
||||
filename: elastic
|
||||
state: present
|
||||
update_cache: yes
|
||||
when: ansible_distribution_major_version is version('12', '<')
|
||||
|
||||
- name: Add Elastic repository (Debian >=12)
|
||||
ansible.builtin.template:
|
||||
src: elastic.sources.j2
|
||||
dest: /etc/apt/sources.list.d/elastic.sources
|
||||
state: present
|
||||
register: elastic_sources
|
||||
when: ansible_distribution_major_version is version('12', '>=')
|
||||
|
||||
- name: Update APT cache
|
||||
apt:
|
||||
update_cache: yes
|
||||
when: elastic_sources is changed
|
@ -0,0 +1,8 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Types: deb
|
||||
URIs: https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt
|
||||
Suites: stable
|
||||
Components: main
|
||||
Signed-by: {{ apt_keyring_dir }}/elastic.asc
|
||||
Enabled: yes
|
@ -1,13 +1,14 @@
|
||||
---
|
||||
|
||||
- include: main_jessie.yml
|
||||
- ansible.builtin.import_tasks: main_jessie.yml
|
||||
when: ansible_distribution_release == "jessie"
|
||||
|
||||
- include: main_stretch.yml
|
||||
- ansible.builtin.import_tasks: main_stretch.yml
|
||||
when: ansible_distribution_release == "stretch"
|
||||
|
||||
- include: main_buster.yml
|
||||
- ansible.builtin.import_tasks: main_buster.yml
|
||||
when: ansible_distribution_release == "buster"
|
||||
|
||||
- include: main_bullseye.yml
|
||||
when: ansible_distribution_major_version is version('11', '>=')
|
||||
- ansible.builtin.import_tasks: main_bullseye.yml
|
||||
when: ansible_distribution_release == "bullseye"
|
||||
|
||||
|
@ -0,0 +1,8 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Types: deb
|
||||
URIs: http://apt.newrelic.com/debian/
|
||||
Suites: newrelic
|
||||
Components: non-free
|
||||
Signed-by: {{ apt_keyring_dir }}/newrelic.asc
|
||||
Enabled: yes
|
@ -0,0 +1,8 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Types: deb
|
||||
URIs: https://deb.nodesource.com/{{ nodejs_apt_version }}
|
||||
Suites: {{ ansible_distribution_release }}
|
||||
Components: main
|
||||
Signed-by: {{ apt_keyring_dir }}/nodesource.asc
|
||||
Enabled: yes
|
@ -0,0 +1,8 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Types: deb
|
||||
URIs: https://dl.yarnpkg.com/debian/
|
||||
Suites: stable
|
||||
Components: main
|
||||
Signed-by: {{ apt_keyring_dir }}/yarn.asc
|
||||
Enabled: yes
|
@ -0,0 +1,8 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Types: deb
|
||||
URIs: https://packages.sury.org/php/
|
||||
Suites: {{ ansible_distribution_release }}
|
||||
Components: main
|
||||
Signed-by: {{ apt_keyring_dir }}/sury.gpg
|
||||
Enabled: yes
|
@ -1,25 +1,28 @@
|
||||
---
|
||||
- include: locales.yml
|
||||
- ansible.builtin.import_tasks: locales.yml
|
||||
|
||||
- include: packages_jessie.yml
|
||||
- ansible.builtin.import_tasks: packages_jessie.yml
|
||||
when: ansible_distribution_release == "jessie"
|
||||
|
||||
- include: packages_stretch.yml
|
||||
- ansible.builtin.import_tasks: packages_stretch.yml
|
||||
when: ansible_distribution_release == "stretch"
|
||||
|
||||
- include: packages_buster.yml
|
||||
- ansible.builtin.import_tasks: packages_buster.yml
|
||||
when: ansible_distribution_release == "buster"
|
||||
|
||||
- include: packages_bullseye.yml
|
||||
when: ansible_distribution_major_version is version('11', '>=')
|
||||
- ansible.builtin.import_tasks: packages_bullseye.yml
|
||||
when: ansible_distribution_release == "bullseye"
|
||||
|
||||
- include: config.yml
|
||||
- ansible.builtin.import_tasks: packages_bookworm.yml
|
||||
when: ansible_distribution_release == "bookworm"
|
||||
|
||||
- include: nrpe.yml
|
||||
- ansible.builtin.import_tasks: config.yml
|
||||
|
||||
- include: munin.yml
|
||||
- ansible.builtin.import_tasks: nrpe.yml
|
||||
|
||||
- include: logrotate.yml
|
||||
- ansible.builtin.import_tasks: munin.yml
|
||||
|
||||
- include: postgis.yml
|
||||
- ansible.builtin.import_tasks: logrotate.yml
|
||||
|
||||
- ansible.builtin.import_tasks: postgis.yml
|
||||
when: postgresql_install_postgis | bool
|
||||
|