Skip to content

Commit

Permalink
Remove deprecated "warn" argument from shell and command module calls (
Browse files Browse the repository at this point in the history
…#182)

Signed-off-by: Webster Mudge <[email protected]>
  • Loading branch information
wmudge authored Dec 21, 2023
1 parent edd04ed commit 9573f20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
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

0 comments on commit 9573f20

Please sign in to comment.