# Unexpected parameter type in new Ansible role

**URL:** <https://forum.ansible.com/t/unexpected-parameter-type-in-new-ansible-role/32424>\
**Category:** Ansible Project\
**Created:** [March 9, 2020, 5:48pm UTC](https://forum.ansible.com/t/unexpected-parameter-type-in-new-ansible-role/32424 "2020-03-09T17:48:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![harry\_devine](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/harry_devine/32/5293_2.png) [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Post date:** [March 9, 2020, 5:48pm UTC](https://forum.ansible.com/t/unexpected-parameter-type-in-new-ansible-role/32424/1 "2020-03-09T17:48:25Z")

</div>

I’m trying to create a role that will update Satellite content views using the Foreman/Katello modules. Here’s what the role tree looks like:

[root@server1 /etc/ansible/roles/foreman\_content\_views]#tree  
.  
├── defaults  
│ └── main.yml  
├── tasks  
│ ├── clean\_cv.yml  
│ └── main.yml  
└── vars  
└── main.yml

3 directories, 4 files

If I check the syntax on each YML file using “ansible-playbook --syntax-check” they check out fine. But when I run the main playbook, I get the following error after I include the role:

PLAY [Manage Satellite Content Views] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Manage Satellite Content Views] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ERROR! unexpected parameter type in action: \<class ‘ansible.parsing.yaml.objects.AnsibleSequence’\>

The error appears to be in ‘/etc/ansible/roles/foreman\_content\_views/tasks/main.yml’: line 1, column 3, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Playbook to perform a repo sync from the sat server  
^ here

Here’s the main playbook I’m running to start the run:

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [March 9, 2020, 7:23pm UTC](https://forum.ansible.com/t/unexpected-parameter-type-in-new-ansible-role/32424/2 "2020-03-09T19:23:15Z")

</div>

Hi
