I get this error when running my first ansible playbook (i.e. I am not familiar with ansible yet)
TASK: [Install packages] ******************************************************
failed: [default] => (item=@Development tools,git,curl,htop) => {"failed": true, "item": "@Development tools,git,curl,htop"}
msg: this module requires key=value arguments (['name=@Development', 'tools,git,curl,htop', 'state=present', 'update_cache=yes'])
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/lukemackenzie/playbook.retry
default : ok=1 changed=0 unreachable=0 failed=1
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
Relvant section of playbook:
tasks:
- name: Install packages
yum: name={{ item }} state=present update_cache=yes
with_items:
- "@Development tools"
- git
- curl
- htop
I tried to adapt this from the examples
I also tried just "Development Tools". I think I am escaping spaces incorrectly in the playbook yaml but am unsure how to do this correctly.
The required naming was "@development-tools" so: