2021-08-05 23:46:04 +08:00
|
|
|
---
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Config repository for Red Hat based OS
|
2021-08-05 23:46:04 +08:00
|
|
|
when: ansible_facts['os_family'] == 'RedHat'
|
|
|
|
block:
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include installs/configure_redhat_repository_installation.yml
|
|
|
|
ansible.builtin.include_tasks: installs/configure_redhat_repository_installation.yml
|
2021-08-05 23:46:04 +08:00
|
|
|
when: ceph_origin == 'repository'
|
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include installs/configure_redhat_local_installation.yml
|
|
|
|
ansible.builtin.include_tasks: installs/configure_redhat_local_installation.yml
|
2021-08-05 23:46:04 +08:00
|
|
|
when: ceph_origin == 'local'
|
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Config repository for Debian based OS
|
2021-08-05 23:46:04 +08:00
|
|
|
when: ansible_facts['os_family'] == 'Debian'
|
2024-02-14 18:14:02 +08:00
|
|
|
tags: package-install
|
2021-08-05 23:46:04 +08:00
|
|
|
block:
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include installs/configure_debian_repository_installation.yml
|
|
|
|
ansible.builtin.include_tasks: installs/configure_debian_repository_installation.yml
|
2021-08-05 23:46:04 +08:00
|
|
|
when: ceph_origin == 'repository'
|
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Update apt cache if cache_valid_time has expired
|
|
|
|
ansible.builtin.apt:
|
|
|
|
update_cache: true
|
2021-08-05 23:46:04 +08:00
|
|
|
cache_valid_time: 3600
|
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Include installs/configure_suse_repository_installation.yml
|
|
|
|
ansible.builtin.include_tasks: installs/configure_suse_repository_installation.yml
|
2021-08-05 23:46:04 +08:00
|
|
|
when:
|
|
|
|
- ansible_facts['os_family'] == 'Suse'
|
|
|
|
- ceph_origin == 'repository'
|