I have installed multiple packages with the yum module Array as shown below.
how to capture the status using Register. please advice
cat install_loop.yml
hosts: DEV_NIFI_AMB_RANGER_1.12
tasks:
- name: Install required packages
yum:
name: ['httpd', 'wget', 'nfs-utils', 'telnet', 'ntp', 'nscd', 'vsftpd']
register: yum_output
state: present
update_cache: True
- debug:
msg: "{{ yum_output.stdout }}"
TASK [Install required packages] ******************************************************************************************************************************
fatal: [ldappranger001]: FAILED! => {“changed”: false, “msg”: “Unsupported parameters for (yum) module: register Supported parameters include: allow_downgrade, autoremove, bugfix, conf_file, disable_excludes, disable_gpg_check, disable_plugin, disablerepo, download_dir, download_only, enable_plugin, enablerepo, exclude, install_repoquery, install_weak_deps, installroot, list, lock_timeout, name, releasever, security, skip_broken, state, update_cache, update_only, use_backend, validate_certs”}