So, I am breaking it down in the playbook - *it doesn't like spaces in
name of the package?*
*playbook:*
---
- hosts: amazonlinux2
become: true
any_errors_fatal: true
serial: 1
max_fail_percentage: 0
vars:
ansible_user: ec2-user
tasks:
# do an "yum update", to ensure latest package lists
- name: yum update
package:
name: yum update
state: present
update_cache: true
*Out-put:*
fatal: [10.0.2.144]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"allow_downgrade": false,
"autoremove": false,
"bugfix": false,
"conf_file": null,
"disable_excludes": null,
"disable_gpg_check": false,
"disable_plugin": [],
"disablerepo": [],
"download_dir": null,
"download_only": false,
"enable_plugin": [],
"enablerepo": [],
"exclude": [],
"install_repoquery": true,
"install_weak_deps": true,
"installroot": "/",
"list": null,
"lock_timeout": 30,
"name": [
"yum update"
],
"releasever": null,
"security": false,
"skip_broken": false,
"state": "present",
"update_cache": true,
"update_only": false,
"use_backend": "auto",
"validate_certs": true
}
},
"msg": "It appears that a space separated string of packages was passed
in as an argument. To operate on several packages, pass a comma separated
string of packages or a list of packages."
}
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/52fb9d1c-b2ee-4861-93b4-7439b6bf6ab5%40googlegroups.com.