# Invisible Ansible Collection

**URL:** <https://forum.ansible.com/t/invisible-ansible-collection/42233>\
**Category:** Get Help\
**Tags:** ansible-core, galaxy-ng\
**Created:** [April 28, 2025, 1:27pm UTC](https://forum.ansible.com/t/invisible-ansible-collection/42233 "2025-04-28T13:27:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Symian](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/symian/32/8301_2.png) [@Symian](https://forum.ansible.com/u/Symian)\
**Post date:** [April 28, 2025, 1:27pm UTC](https://forum.ansible.com/t/invisible-ansible-collection/42233/1 "2025-04-28T13:27:22Z")

</div>

**Hi. New to Ansible, and especially the collections. I installed a [collection](https://github.com/ansible-collections/servicenow.itsm) as ansible\_admin on a LINUX server, but then when I try to run it I get: “ERROR! ‘servicenow.itsm.change\_request’ is not a valid attribute for a Play”. Full log of install and the YML playbook attached. Please help to run this playbook.**.

```auto
+++++++++++OS CHECKS++++++++++++++++++++++++++++++++++++++
[ansible_admin@ctrl ~]$ ansible-galaxy collection install servicenow.itsm --force
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Downloading https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/servicenow-itsm-2.8.0.tar.gz to /home/ansible_admin/.ansible/tmp/ansible-local-697509tnc1jhu/tmp2z5pk9vv/servicenow-itsm-2.8.0-tjnbllot
Installing 'servicenow.itsm:2.8.0' to '/home/ansible_admin/.ansible/collections/ansible_collections/servicenow/itsm'
servicenow.itsm:2.8.0 was installed successfully
[ansible_admin@ctrl ~]$ ansible-galaxy collection verify servicenow.itsm
Downloading https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/servicenow-itsm-2.8.0.tar.gz to /home/ansible_admin/.ansible/tmp/ansible-local-69758mb0348sr/tmpdfe6l2iw/servicenow-itsm-2.8.0-p4e1pw_o
Verifying 'servicenow.itsm:2.8.0'.
Installed collection found at '/home/ansible_admin/.ansible/collections/ansible_collections/servicenow/itsm'
MANIFEST.json hash: a46e1a7295dd9557bac4b3fbe3278c3ece58fb26700ffc91618d0496655e0f43
Successfully verified that checksums for 'servicenow.itsm:2.8.0' match the remote collection.
[ansible_admin@ctrl ~]$ ansible-galaxy collection list
# /home/ansible_admin/.ansible/collections/ansible_collections
Collection Version
--------------- -------
servicenow.itsm 2.8.0
# /usr/share/ansible/collections/ansible_collections
Collection Version
------------------------ -------
redhat.rhel_system_roles 1.88.9
[ansible_admin@ctrl ~]$

+++++++++++++ANSIBLE servicenow.itsm.change_request PLAYBOOK++++++++++++++++++++++++++++++++
---
- name: Create change request | login
  servicenow.itsm.change_request:
    instance:
      host: https://dev336605.service-now.com
      username: aes.creator
      password: password
    type: standard
    state: new
    requested_by: some.user
    short_description: Install new Cisco Super Duper Shmooper
    description: Please install new Cat. 6500 in Data center 01
    attachments:
      - path: path/to/attachment.txt
    priority: moderate
    risk: low
    impact: low
    other:
      expected_start: 2021-02-12

- name: Change state of the change request
  servicenow.itsm.change_request:
    instance:
      host: https://dev336605.service-now.com
      username: aes.creator
      password: password

    state: assess
    assignment_group: some.group
    number: CHG0000001

- name: Close change_request
  servicenow.itsm.change_request:
    instance:
      host: https://dev336605.service-now.com
      username: aes.creator
      password: password

    state: closed
    close_code: "successful"
    close_notes: "Closed"
    assignment_group: some.group
    number: CHG0000001

- name: Delete change_request
  servicenow.itsm.change_request:
    instance:
      host: https://dev336605.service-now.com
      username: aes.creator
      password: password

    state: absent
    number: CHG0000001

+++++ERROR+++++++++++++++++++++++++++++++++

[ansible_admin@ctrl ansible]$ ansible-playbook ./playbooks/service_now_create_ticket.yml -v 
Using /etc/ansible/ansible.cfg as config file
ERROR! 'servicenow.itsm.change_request' is not a valid attribute for a Play
The error appears to be in '/etc/ansible/playbooks/service_now_create_ticket.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
---
- name: Create change request | login
  ^ here
[ansible_admin@ctrl ansible]$

```

- Set at least one tag (the experts follow the tags, so the right people will find you if you tag)

---

<div class="post-metadata">

**Author:** ![wayt](https://avatars.discourse-cdn.com/v4/letter/w/3be4f8/32.png) [@wayt](https://forum.ansible.com/u/wayt)\
**Post date:** [April 28, 2025, 1:40pm UTC](https://forum.ansible.com/t/invisible-ansible-collection/42233/2 "2025-04-28T13:40:12Z")

</div>

The part you show that is the playbook is not a valid playbook. That is a list of tasks like what is found in a role. Have a read of these [docs](https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_intro.html#playbook-syntax). You’ll need to start your playbook off with some kind of hosts targeting pattern (`hosts: all`) and a `tasks` key. The bits you already have follow the `tasks` key.

---

<div class="post-metadata">

**Author:** ![Symian](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/symian/32/8301_2.png) [@Symian](https://forum.ansible.com/u/Symian)\
**Post date:** [April 28, 2025, 2:06pm UTC](https://forum.ansible.com/t/invisible-ansible-collection/42233/3 "2025-04-28T14:06:26Z")

</div>

Thank you Tim. You were right. As soon as made the change it failed, but for another reason which means it has gone past my issue which you resolved. Thx.  
+++++++++++++++++++  
[ansible\_admin@ctrl ansible]$ ansible-playbook ./playbooks/service\_now\_create\_ticket.yml -v  
Using /etc/ansible/ansible.cfg as config file  
[WARNING]: Collection servicenow.itsm does not support Ansible version 2.14.17

PLAY [Sample playbook] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*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*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [localhost]: FAILED! =\> {“changed”: false, “msg”: “Unsupported parameters for (servicenow.itsm.incident) module: instance.caller, instance.impact, instance.short\_description, instance.urgency. Supported parameters include: access\_token, api\_path, client\_id, client\_secret, custom\_headers, grant\_type, host, password, refresh\_token, timeout, username, validate\_certs.”}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0  
[ansible\_admin@ctrl ansible]$

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [May 28, 2025, 2:07pm UTC](https://forum.ansible.com/t/invisible-ansible-collection/42233/4 "2025-05-28T14:07:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
