Skip to content

Commit 9573f20

Browse files
authored
Remove deprecated "warn" argument from shell and command module calls (#182)
Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent edd04ed commit 9573f20

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

roles/cloudera_manager/license/tasks/enterprise.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
status_code: 200,404
2222
register: license_response
2323

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

4849
- name: Post license file to Cloudera Manager API
49-
shell: >
50+
ansible.builtin.shell: >
5051
curl
5152
--user {{ cloudera_manager_api_user }}:{{ cloudera_manager_api_password }}
5253
--request POST
5354
--header 'Content-Type:multipart/form-data'
5455
--form license=@{{ license_local_tmp_path }}
5556
{{ license_response.url }}
56-
args:
57-
warn: False
5857
register: response
5958
failed_when: "'owner' not in response.stdout"
6059
when: license_not_installed

roles/cloudera_manager/repo/tasks/main-RedHat.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
---
1616

1717
- name: Add Cloudera Manager yum repository
18-
yum_repository:
18+
ansible.builtin.yum_repository:
1919
name: cloudera-manager
2020
description: Cloudera Manager
2121
baseurl: "{{ cloudera_manager_repo_url }}"
@@ -26,6 +26,4 @@
2626
password: "{{ cloudera_manager_repo_password | default('') }}"
2727

2828
- name: yum-clean-metadata
29-
command: yum clean metadata
30-
args:
31-
warn: no
29+
ansible.builtin.command: yum clean metadata

0 commit comments

Comments
 (0)