Allow override of the repo filename

Apt cannot have 2 mirrors with the same content in 2 different files.
This commit makes possible to decide the filename for the repo to
avoid possible clashes.

Change-Id: I8be9b49e40b755cb90928067c60fe8a5d9c5ae0b
This commit is contained in:
Jean-Philippe Evrard 2017-01-20 12:14:07 +00:00
parent 2b9466d053
commit 722a84eb7a
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
features:
- The filename of the apt source for the ubuntu
cloud archive used in ceph client can now be
defined by giving a filename in the uca part
of the dict ``ceph_apt_repos``.

View File

@ -71,6 +71,7 @@
apt_repository:
repo: "{{ ceph_apt_repos[ceph_pkg_source].repo }}"
state: "{{ ceph_apt_repos[ceph_pkg_source].state }}"
filename: "{{ ceph_apt_repos[ceph_pkg_source].filename | default(omit) }}"
update_cache: yes
register: add_repos
until: add_repos|success