# Community.general.rocketchat still/how usable in AWX playbooks?

**URL:** <https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172>\
**Category:** Get Help\
**Tags:** playbook, awx, ansible-lint\
**Created:** [June 5, 2024, 7:19am UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172 "2024-06-05T07:19:13Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [June 5, 2024, 7:19am UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/1 "2024-06-05T07:19:13Z")

</div>

Hello again!  
I have a question about the rocketchat module:  
Iam working on a Role to check for some gitgub releases for eg RocketChat Client and AWX-Operator and sent it via Rocketchat webhoock if there is a new verion only.  
I created a playbook just for a testmessage and i get the error:

ERROR! couldn’t resolve module/action ‘community.general.rocketchat’. This often indicates a misspelling, missing collection, or incorrect module path.  
Ansible Lint:

```auto
11Rocketchat_testmessage2.yaml:6:7: syntax-check[unknown-module]: couldn't resolve module/action 'community.general.rocketchat'. This often indicates a misspelling, missing collection, or incorrect module path.

```

playbook:

```auto
---
- name: Send test message to Rocket.Chat
  hosts: localhost
  gather_facts: false
  tasks:
    - name: Send notification message via Rocket Chat all options
      community.general.rocketchat:
        domain: chat.gruen.net
        token: 'my/supersecrettoken'
        msg: 'This is a test message from AWX_Bot.'
        channel: '#AWX_Bot_Channel'
        username: 'AWX_Bot'
        # icon_url: 'http://www.example.com/some-image-file.png'
        link_names: 0
      delegate_to: localhost

```

I can add the rocketchat in the Notifications and the testmessage is alright.

Do i have a typo/logic error?  
I think the problem is i need to install this community.general , but i have no idea how to.

I can edit the Message of the Rocketchat so so i have to set the variables in an own Notification setting for each Playbook?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![fosterseth](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/fosterseth/32/101_2.png) [@fosterseth](https://forum.ansible.com/u/fosterseth)\
**Post date:** [June 5, 2024, 6:33pm UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/2 "2024-06-05T18:33:53Z")

</div>

You’ll need to build a custom EE that includes community.general collection and run your jobs through that EE

Seth

---

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [June 6, 2024, 8:20am UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/3 "2024-06-06T08:20:48Z")

</div>

> [@fosterseth](#):
>
> ommunity.general collection

Thank you!  
I dont think i can just add stuff in a new ee and be habppy, but need to use the method with the AWX Builder?  
I found tis [reddit](https://www.reddit.com/r/awx/comments/zy24n2/how_do_you_make_community_modules_available/) wich just hast the same issue i have.  
Do you have a certain guide you would recommend before i start poking around?

---

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [June 7, 2024, 8:49am UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/4 "2024-06-07T08:49:57Z")

</div>

I see that the setup of the Custom Execution enviroment depents on how your installation is set up.  
My installation is with kubernetes with kustomize from this [git](https://github.com/GiuffreLab/awx-operator).

---

<div class="post-metadata">

**Author:** ![Denney-tech](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/denney-tech/32/1556_2.png) [@Denney-tech](https://forum.ansible.com/u/Denney-tech)\
**Post date:** [June 7, 2024, 4:24pm UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/5 "2024-06-07T16:24:01Z")

</div>

You can have as many Execution Environments as you want, and can build them however you want. The recommended/supported method is to use ansible-builder to at least create the build context (generate the dockerfile, etc) and then you can hand that off to some other build pipeline.

The EE needs to be built and pushed somewhere that AWX can pull from. So some kind of image registry. Some K8ts have a native image registry that you can push to, but there’s things like Sonatype’s Nexus that you can use for self-hosting.

You can then modify your kustomize build to use your custom EE’s, or you can add them after the fact in the UI.

---

<div class="post-metadata">

**Author:** ![utoddl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/utoddl/32/249_2.png) [@utoddl](https://forum.ansible.com/u/utoddl)\
**Post date:** [June 7, 2024, 6:24pm UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/6 "2024-06-07T18:24:33Z")

</div>

I can see why you’d want to have `community.general` baked into your EE, as that would avoid a lot of large pulls from galaxy. But, couldn’t you list `community.general` in your project’s `./collections/requirements.yml` file and have it pulled in that way?

---

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [June 10, 2024, 10:47am UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/7 "2024-06-10T10:47:25Z")

</div>

Yeah this would be the other solution but im rather lazy i would rather need a week or so to get thin via the execution enviroment so dont have to mind to add anything when i use those modules.  
After some time i would not have in mind about adding the requiremants.yml.  
And im the only at my company who manages the awx and i try to keep eveything as simple in the end

---

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [June 10, 2024, 10:51am UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/8 "2024-06-10T10:51:37Z")

</div>

the the execution enviroment is something like a container/pod with its own function like the pod for the webserver, the one with db and, the other tho for management?  
Does it stay when i pull a new version of the builder for updates?  
And i have to choose thee execution enviroment i added in the templates

---

<div class="post-metadata">

**Author:** ![utoddl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/utoddl/32/249_2.png) [@utoddl](https://forum.ansible.com/u/utoddl)\
**Post date:** [June 10, 2024, 11:13am UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/9 "2024-06-10T11:13:34Z")

</div>

> [@gothsome](#):
>
> And i have to choose thee execution enviroment i added in the templates

Highly recommend you leave it unspecified for most templates so that they will use the default. When you make a new EE available and test it to your satisfaction, change the default for your AWX installation and all your templates automatically switch to using the new default.

---

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [June 10, 2024, 11:29am UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/10 "2024-06-10T11:29:04Z")

</div>

Thans what i wanted to say - would just use te custom one for the playbook with the rocketchat modules, but if there are default feature is in the same playbook will it still function?  
Maybe i try to get something with default+custom in e new enviroment then?

---

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [June 10, 2024, 12:24pm UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/11 "2024-06-10T12:24:54Z")

</div>

my installation is at kubernetes and the ee would be created in Docker - will this be an issue?  
Or do i have to adadpt the ee to kubernetes?

---

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [June 11, 2024, 6:38am UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/12 "2024-06-11T06:38:58Z")

</div>

Theres a third option - i just could use the ee from other peaple from dockhub and add it.  
🏴‍☠️

---

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [June 11, 2024, 8:51am UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/13 "2024-06-11T08:51:05Z")

</div>

I can now use the rocketchat function.  
You can eather use the requirements file or create a new ee yourself or use one frome someone else on docker hub.

Thank you very much you all!

---

<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:** [July 11, 2024, 8:51am UTC](https://forum.ansible.com/t/community-general-rocketchat-still-how-usable-in-awx-playbooks/6172/14 "2024-07-11T08:51:10Z")

</div>

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