cloudera-labs / cloudera.cluster

An Ansible collection for lifecycle and management of Cloudera CDP Private Cloud resources on bare metal, IaaS, and PaaS.
Apache License 2.0
32 stars 48 forks source link

./roles/cloudera_manager/repo/tasks/main-RedHat.yml uses unsupported parameter #172

Closed hadoopch closed 9 months ago

hadoopch commented 9 months ago

Hi all,

if i run the cluster playbook a second time i get an error regarding an unsupported parrameter

fatal: [cm001.cdp.lan]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (ansible.legacy.command) module: warn. Supported parameters include: _raw_params, _uses_shell, argv, chdir, creates, executable, removes, stdin, stdin_add_newline, strip_empty_ends."}

The error is provoked by the parameter warn

- name: yum-clean-metadata
  command: yum clean metadata
  args:
     warn: no

Regards

Uli

hadoopch commented 9 months ago

There is a similar issue with

roles/cloudera_manager/license/tasks/enterpise.yml:


- name: Post license file to Cloudera Manager API
  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
wmudge commented 9 months ago

Updated in #182