File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 21
21
status_code : 200,404
22
22
register : license_response
23
23
24
- - set_fact :
24
+ - name : Set installed Cloudera license flag
25
+ ansible.builtin.set_fact :
25
26
license_not_installed : >-
26
27
{{ license_response.json.message | default('') in [
27
28
'This installation is currently running Cloudera Express.',
46
47
quiet : yes
47
48
48
49
- name : Post license file to Cloudera Manager API
49
- shell : >
50
+ ansible.builtin. shell : >
50
51
curl
51
52
--user {{ cloudera_manager_api_user }}:{{ cloudera_manager_api_password }}
52
53
--request POST
53
54
--header 'Content-Type:multipart/form-data'
54
55
--form license=@{{ license_local_tmp_path }}
55
56
{{ license_response.url }}
56
- args :
57
- warn : False
58
57
register : response
59
58
failed_when : " 'owner' not in response.stdout"
60
59
when : license_not_installed
Original file line number Diff line number Diff line change 15
15
---
16
16
17
17
- name : Add Cloudera Manager yum repository
18
- yum_repository :
18
+ ansible.builtin. yum_repository :
19
19
name : cloudera-manager
20
20
description : Cloudera Manager
21
21
baseurl : " {{ cloudera_manager_repo_url }}"
26
26
password : " {{ cloudera_manager_repo_password | default('') }}"
27
27
28
28
- name : yum-clean-metadata
29
- command : yum clean metadata
30
- args :
31
- warn : no
29
+ ansible.builtin.command : yum clean metadata
You can’t perform that action at this time.
0 commit comments