Unsupported parameters for (yum) module: enabled

1,612 views
Skip to first unread message

sarang khulape

unread,
May 28, 2020, 9:16:27 AM5/28/20
to Ansible Project
tasks:
  -  name: Start and enable vmtoolsd
     yum: name=vmtoolsd state=started enabled=yes

How to resolve below error ?

fatal: [<IP_ADDRESS>]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (yum) module: enabled 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"}

Stefan Hornburg (Racke)

unread,
May 28, 2020, 9:20:22 AM5/28/20
to ansible...@googlegroups.com
The yum module installs packages but it is not managing services.

Regards
Racke

> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/eed6bdbe-7d45-4a2d-a4c4-b3bb0730b9bc%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/eed6bdbe-7d45-4a2d-a4c4-b3bb0730b9bc%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

signature.asc

sarang khulape

unread,
May 28, 2020, 9:27:56 AM5/28/20
to Ansible Project
Thank you Racke for your reply.

I could solve this by updating the task as below. 

tasks
  -  name: Start and enable vmtoolsd
     service: name=vmtoolsd state=started enabled=yes 
Reply all
Reply to author
Forward
0 new messages