2014-09-05 03:14:11 +08:00
|
|
|
---
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include configure_debian_repository_installation.yml
|
2017-08-03 21:30:25 +08:00
|
|
|
include: configure_debian_repository_installation.yml
|
|
|
|
when:
|
|
|
|
- ceph_origin == 'repository'
|
|
|
|
|
2018-04-26 17:42:11 +08:00
|
|
|
- name: update apt cache if a repo was added
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
register: update_apt_cache
|
|
|
|
retries: 5
|
|
|
|
delay: 2
|
|
|
|
until: update_apt_cache | success
|
|
|
|
when:
|
|
|
|
- add_debian_apt_repo is defined
|
|
|
|
- add_debian_apt_repo.changed | default(false)
|
|
|
|
|
|
|
|
- name: update apt cache if cache_valid_time has expired
|
2015-09-04 00:18:53 +08:00
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
cache_valid_time: 3600
|
2014-09-05 03:14:11 +08:00
|
|
|
|
2018-04-26 17:42:11 +08:00
|
|
|
- name: install dependencies
|
2017-01-31 07:15:08 +08:00
|
|
|
apt:
|
2018-04-26 17:42:11 +08:00
|
|
|
name: "{{ debian_package_dependencies }}"
|
|
|
|
state: present
|
2017-01-31 07:15:08 +08:00
|
|
|
update_cache: yes
|
2018-04-26 17:42:11 +08:00
|
|
|
cache_valid_time: 3600
|
2017-01-31 07:15:08 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include install_debian_packages.yml
|
2017-08-03 21:30:25 +08:00
|
|
|
include: install_debian_packages.yml
|
|
|
|
when:
|
|
|
|
- (ceph_origin == 'repository' or ceph_origin == 'distro')
|
|
|
|
- ceph_repository != 'rhcs'
|
2017-03-16 17:17:08 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include install_debian_rhcs_packages.yml
|
2017-08-03 21:30:25 +08:00
|
|
|
include: install_debian_rhcs_packages.yml
|
2017-05-04 17:14:58 +08:00
|
|
|
when:
|
2017-08-03 21:30:25 +08:00
|
|
|
- (ceph_origin == 'repository' or ceph_origin == 'distro')
|
|
|
|
- ceph_repository == 'rhcs'
|