Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions roles/cloudera_manager/license/tasks/enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
status_code: 200,404
register: license_response

- set_fact:
- name: Set installed Cloudera license flag
ansible.builtin.set_fact:
license_not_installed: >-
{{ license_response.json.message | default('') in [
'This installation is currently running Cloudera Express.',
Expand All @@ -46,15 +47,13 @@
quiet: yes

- name: Post license file to Cloudera Manager API
shell: >
ansible.builtin.shell: >
curl
--user {{ cloudera_manager_api_user }}:{{ cloudera_manager_api_password }}
--request POST
--header 'Content-Type:multipart/form-data'
--form license=@{{ license_local_tmp_path }}
{{ license_response.url }}
args:
warn: False
register: response
failed_when: "'owner' not in response.stdout"
when: license_not_installed
6 changes: 2 additions & 4 deletions roles/cloudera_manager/repo/tasks/main-RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
---

- name: Add Cloudera Manager yum repository
yum_repository:
ansible.builtin.yum_repository:
name: cloudera-manager
description: Cloudera Manager
baseurl: "{{ cloudera_manager_repo_url }}"
Expand All @@ -26,6 +26,4 @@
password: "{{ cloudera_manager_repo_password | default('') }}"

- name: yum-clean-metadata
command: yum clean metadata
args:
warn: no
ansible.builtin.command: yum clean metadata