# ansible-galaxy newb error

**URL:** <https://forum.ansible.com/t/ansible-galaxy-newb-error/37085>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [September 11, 2022, 1:29am UTC](https://forum.ansible.com/t/ansible-galaxy-newb-error/37085 "2022-09-11T01:29:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy\_Bach](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@Andy\_Bach](https://forum.ansible.com/u/Andy_Bach)\
**Post date:** [September 11, 2022, 1:29am UTC](https://forum.ansible.com/t/ansible-galaxy-newb-error/37085/1 "2022-09-11T01:29:41Z")

</div>

Hi,

I am pretty new to Ansible, and followed Learn Linux TV’s excellent tutorial series.

In which, one of the last things we do is refactor things into different roles/tasks.

I am trying to follow the rvm1-ansible “role” I downloaded using:

ansible-galaxy install rvm.ruby

however, I can see their example code was in “playbook” format, I thought I could just extract what I need and put it in my tasks/main.yml for the targetted web\_server role. Like so:

- name: install rvm using the roles function  
roles:
- { role: rvm.ruby,  
tags: ruby,  
rvm1\_rubies: [‘ruby-2.6.6’],  
rvm1\_user: ‘webuser’  
}

However I get an instant parsing crash when I try to run the playbook.

$ ansible-playbook site.yml  
ERROR! unexpected parameter type in action: \<class ‘ansible.parsing.yaml.objects.AnsibleSequence’\>

The error appears to be in ‘/home/webuser/ansible/homelab/roles/web\_servers/tasks/main.yml’: line 46, column 3, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: install rvm using the roles function  
^ here

I have been trying to find the missing piece on my own through documentation and even reading other ansible-galaxy module install steps to see if I am missing something obvious which I don’t know about.

Thanks

Andy
