Hello Tom,
I am certain that my syntax and indentation is correct. I have created a
test role, called packages, and in the main.yml file of the tasks directory
of this role, I have:
---
- name: install packages
yum:
name:
- screen
- tmux
- lsof
state: present
However, running this role results in:
SUDO-SUCCESS-fwkqifljtkdcrlzyrnukmprtmiczpknk
Traceback (most recent call last):
File "/tmp/ansible-tmp-1422889693.47-234739679264274/yum", line 2402, in
<module>
main()
File "/tmp/ansible-tmp-1422889693.47-234739679264274/yum", line 832, in
main
disablerepo, disable_gpg_check)
File "/tmp/ansible-tmp-1422889693.47-234739679264274/yum", line 717, in
ensure
items = pkgspec.split(',')
AttributeError: 'list' object has no attribute 'split'
$ ansible --version
ansible 1.8.2
configured module search path = None
On 2 February 2015 at 12:48, Tom Bamford <[email protected]> wrote:
> Hi Anand
>
> Are you sure your indenting is correct? Here’s an example from one of my
> role task files, known working with Ansible v1.8.2 (packages trimmed for
> brevity)
>
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CANbPJF%3DFeY0nKgu1HGSsbfyqZU%3DdmQmHJZQkXSSCkPXPRFYQ_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.