diff --git a/releasenotes/notes/apt-source-filenamed-9f83d18619debf26.yaml b/releasenotes/notes/apt-source-filenamed-9f83d18619debf26.yaml new file mode 100644 index 00000000..6f5488c7 --- /dev/null +++ b/releasenotes/notes/apt-source-filenamed-9f83d18619debf26.yaml @@ -0,0 +1,6 @@ +--- +features: + - The filename of the apt source can now be defined + with the variable ``filename`` inside the dicts + ``galera_repo`` and + ``galera_percona_xtrabackup_repo``. diff --git a/tasks/galera_install_apt.yml b/tasks/galera_install_apt.yml index 0ab916b9..53cd7e16 100644 --- a/tasks/galera_install_apt.yml +++ b/tasks/galera_install_apt.yml @@ -73,7 +73,7 @@ - name: Add galera repo apt_repository: repo: "{{ galera_repo.repo }}" - filename: MariaDB + filename: "{{ galera_repo.filename }}" state: "{{ galera_repo.state }}" register: add_repos until: add_repos|success @@ -85,7 +85,7 @@ - name: Add percona repo apt_repository: repo: "{{ galera_percona_xtrabackup_repo.repo }}" - filename: Percona + filename: "{{ galera_percona_xtrabackup_repo.filename }}" state: "{{ galera_percona_xtrabackup_repo.state }}" register: add_repos until: add_repos|success diff --git a/vars/ubuntu-16.04.yml b/vars/ubuntu-16.04.yml index 18e22154..1efe8f83 100644 --- a/vars/ubuntu-16.04.yml +++ b/vars/ubuntu-16.04.yml @@ -91,10 +91,12 @@ galera_percona_xtrabackup_repo_url: "http://repo.percona.com/apt" galera_percona_xtrabackup_repo: repo: "deb {{ galera_percona_xtrabackup_repo_url }} {{ ansible_distribution_release }} main" state: "present" + filename: "Percona" _galera_repo_url: "http://mirror.rackspace.com/mariadb/repo/10.1/ubuntu" galera_repo: repo: "deb {{ galera_repo_url }} {{ ansible_distribution_release }} main" state: "present" + filename: "MariaDB" use_percona_upstream: no