mirror of https://github.com/ceph/ceph-ansible.git
ceph-common: export repository configuration to a single task
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit e79bda9a05
)
pull/6955/head
parent
057f8e4315
commit
110b08c290
|
@ -0,0 +1,31 @@
|
||||||
|
---
|
||||||
|
- name: config repository for Red Hat based OS
|
||||||
|
when: ansible_facts['os_family'] == 'RedHat'
|
||||||
|
block:
|
||||||
|
- name: include installs/configure_redhat_repository_installation.yml
|
||||||
|
include_tasks: installs/configure_redhat_repository_installation.yml
|
||||||
|
when: ceph_origin == 'repository'
|
||||||
|
|
||||||
|
- name: include installs/configure_redhat_local_installation.yml
|
||||||
|
include_tasks: installs/configure_redhat_local_installation.yml
|
||||||
|
when: ceph_origin == 'local'
|
||||||
|
|
||||||
|
- name: config repository for Debian based OS
|
||||||
|
when: ansible_facts['os_family'] == 'Debian'
|
||||||
|
block:
|
||||||
|
- name: include installs/configure_debian_repository_installation.yml
|
||||||
|
include_tasks: installs/configure_debian_repository_installation.yml
|
||||||
|
when: ceph_origin == 'repository'
|
||||||
|
|
||||||
|
- name: update apt cache if cache_valid_time has expired
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
cache_valid_time: 3600
|
||||||
|
register: result
|
||||||
|
until: result is succeeded
|
||||||
|
|
||||||
|
- name: include installs/configure_suse_repository_installation.yml
|
||||||
|
include_tasks: installs/configure_suse_repository_installation.yml
|
||||||
|
when:
|
||||||
|
- ansible_facts['os_family'] == 'Suse'
|
||||||
|
- ceph_origin == 'repository'
|
|
@ -1,15 +1,3 @@
|
||||||
---
|
|
||||||
- name: include configure_debian_repository_installation.yml
|
|
||||||
include_tasks: configure_debian_repository_installation.yml
|
|
||||||
when: ceph_origin == 'repository'
|
|
||||||
|
|
||||||
- name: update apt cache if cache_valid_time has expired
|
|
||||||
apt:
|
|
||||||
update_cache: yes
|
|
||||||
cache_valid_time: 3600
|
|
||||||
register: result
|
|
||||||
until: result is succeeded
|
|
||||||
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
apt:
|
apt:
|
||||||
name: "{{ debian_package_dependencies }}"
|
name: "{{ debian_package_dependencies }}"
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
- name: include configure_redhat_repository_installation.yml
|
|
||||||
include_tasks: configure_redhat_repository_installation.yml
|
|
||||||
when: ceph_origin == 'repository'
|
|
||||||
|
|
||||||
- name: include configure_redhat_local_installation.yml
|
|
||||||
include_tasks: configure_redhat_local_installation.yml
|
|
||||||
when: ceph_origin == 'local'
|
|
||||||
|
|
||||||
- name: include install_redhat_packages.yml
|
|
||||||
include_tasks: install_redhat_packages.yml
|
|
||||||
when: (ceph_origin == 'repository' or ceph_origin == 'distro')
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: include configure_suse_repository_installation.yml
|
|
||||||
include_tasks: configure_suse_repository_installation.yml
|
|
||||||
when: ceph_origin == 'repository'
|
|
||||||
|
|
||||||
- name: include install_suse_packages.yml
|
|
||||||
include_tasks: install_suse_packages.yml
|
|
|
@ -1,11 +1,17 @@
|
||||||
---
|
---
|
||||||
- name: include_tasks installs/install_on_redhat.yml
|
- name: include configure_repository.yml
|
||||||
include_tasks: installs/install_on_redhat.yml
|
include_tasks: configure_repository.yml
|
||||||
when: ansible_facts['os_family'] == 'RedHat'
|
tags: package-configure
|
||||||
|
|
||||||
|
- name: include installs/install_redhat_packages.yml
|
||||||
|
include_tasks: installs/install_redhat_packages.yml
|
||||||
|
when:
|
||||||
|
- ansible_facts['os_family'] == 'RedHat'
|
||||||
|
- (ceph_origin == 'repository' or ceph_origin == 'distro')
|
||||||
tags: package-install
|
tags: package-install
|
||||||
|
|
||||||
- name: include_tasks installs/install_on_suse.yml
|
- name: include installs/install_suse_packages.yml
|
||||||
include_tasks: installs/install_on_suse.yml
|
include_tasks: installs/install_suse_packages.yml
|
||||||
when: ansible_facts['os_family'] == 'Suse'
|
when: ansible_facts['os_family'] == 'Suse'
|
||||||
tags: package-install
|
tags: package-install
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue