Fix tripleo_repos role
We accidently renamed the tripleo-repos rpm and command when we renamed the role from tripleo-repos to tripleo_repos. Additionally we didn't have return_content for the uri request to find the rpm url so it wasn't working correctly. Change-Id: I14ccb1583740592daa3f98ca50ac5c59303a25cd
This commit is contained in:
@@ -12,19 +12,19 @@
|
||||
- name: Grab repo package list
|
||||
uri:
|
||||
url: "{{ _tripleo_repos_repo_url }}"
|
||||
return_content:
|
||||
return_content: true
|
||||
retries: 10
|
||||
delay: 3
|
||||
register: _tripleo_repos_repo_data
|
||||
- name: Find rpm name
|
||||
set_fact:
|
||||
_tripleo_repos_rpm: "{{ _tripleo_repos_repo_data.content | regex_search('python[0-9]-tripleo_repos-[a-z0-9-.]+\\.rpm') }}"
|
||||
_tripleo_repos_rpm: "{{ _tripleo_repos_repo_data.content | regex_search('python[0-9]-tripleo-repos-[a-z0-9-.]+\\.rpm') }}"
|
||||
- name: Fail if rpm is missing
|
||||
fail:
|
||||
msg: Unable to find tripleo_repos rpm
|
||||
when: _tripleo_repos_rpm|length == 0
|
||||
|
||||
- name: Install tripleo_repos
|
||||
- name: Install tripleo-repos
|
||||
yum:
|
||||
name: "{{ _tripleo_repos_repo_url }}{{ _tripleo_repos_rpm }}"
|
||||
state: present
|
||||
|
||||
@@ -11,14 +11,14 @@
|
||||
- name: Gather the rpm package facts
|
||||
package_facts:
|
||||
|
||||
- name: Install tripleo_repos
|
||||
- name: Install tripleo-repos
|
||||
include_tasks: install.yml
|
||||
when: (ansible_facts.distribution_major_version|int <= 7 and not 'python2-tripleo_repos' in ansible_facts.packages) or
|
||||
(ansible_facts.distribution_major_version|int <= 8 and not 'python3-tripleo_repos' in ansible_facts.packages)
|
||||
when: (ansible_facts.distribution_major_version|int <= 7 and not 'python2-tripleo-repos' in ansible_facts.packages) or
|
||||
(ansible_facts.distribution_major_version|int <= 8 and not 'python3-tripleo-repos' in ansible_facts.packages)
|
||||
|
||||
- name: Run tripleo_repos
|
||||
- name: Run tripleo-repos
|
||||
command: >-
|
||||
tripleo_repos
|
||||
tripleo-repos
|
||||
-b {{ tripleo_repos_branch }}
|
||||
{{ tripleo_repos_extra_args | join(' ') }}
|
||||
{{ tripleo_repos_version }}
|
||||
|
||||
Reference in New Issue
Block a user