# How to get deb822\_repository module to work with core 2.14.3?

**URL:** <https://forum.ansible.com/t/how-to-get-deb822-repository-module-to-work-with-core-2-14-3/3721>\
**Category:** Get Help\
**Tags:** module, debian\
**Created:** [February 7, 2024, 7:29am UTC](https://forum.ansible.com/t/how-to-get-deb822-repository-module-to-work-with-core-2-14-3/3721 "2024-02-07T07:29:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rattencreep](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/rattencreep/32/2216_2.png) [@rattencreep](https://forum.ansible.com/u/rattencreep)\
**Post date:** [February 7, 2024, 7:29am UTC](https://forum.ansible.com/t/how-to-get-deb822-repository-module-to-work-with-core-2-14-3/3721/1 "2024-02-07T07:29:04Z")

</div>

Hello,

I want to use the deb822\_repository module in one of my tasks. It is failing with:

ERROR! couldn’t resolve module/action ‘ansible.builtin.deb822\_repository’.

I run this on Debian Bookworm and ansible 2.14.3 ist the current version there. After some digging, as I understand it, the deb822\_repository is only part of ansible-core 2.15 and later. It was part part of the collection community.general before but not anymore (since it is part of core now).

How do I get this module to work with my 2.14.3 version?

Thank you!

---

<div class="post-metadata">

**Author:** ![mkrizek](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mkrizek/32/2055_2.png) [@mkrizek](https://forum.ansible.com/u/mkrizek)\
**Post date:** [February 7, 2024, 8:10am UTC](https://forum.ansible.com/t/how-to-get-deb822-repository-module-to-work-with-core-2-14-3/3721/2 "2024-02-07T08:10:34Z")

</div>

> I run this on Debian Bookworm and ansible 2.14.3 ist the current version there. After some digging, as I understand it, the deb822\_repository is only part of ansible-core 2.15 and later.

Correct.

> It was part part of the collection community.general before but not anymore (since it is part of core now).

Note that `deb822_repository` from the ansible-core distribution (version 2.15+) was written from scratch and if you were using any other `deb822_repository` module it is very likely they aren’t compatible.

> How do I get this module to work with my 2.14.3 version?

You can download the module from [ansible/lib/ansible/modules/deb822\_repository.py at devel · ansible/ansible · GitHub](https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/deb822_repository.py) and use the standard mechanism to add custom modules to your Ansible installation, see [Adding modules and plugins locally — Ansible Documentation](https://docs.ansible.com/ansible/latest/dev_guide/developing_locally.html#adding-a-module-or-plugin-outside-of-a-collection).

However note that there is no guarantee that the module will work on 2.14 and such scenario is not supported by any means. I would recommend, if possible, updating to 2.15+ via other means - search the ansible documentation for “Installing Ansible” - I was going to put a link here but got an error saying that new users can only put two links within their reply ¯\_(ツ)\_/¯.

---

<div class="post-metadata">

**Author:** ![chris](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chris/32/293_2.png) [@chris](https://forum.ansible.com/u/chris)\
**Post date:** [February 7, 2024, 10:13am UTC](https://forum.ansible.com/t/how-to-get-deb822-repository-module-to-work-with-core-2-14-3/3721/3 "2024-02-07T10:13:46Z")

</div>

> [@mkrizek](#):
>
> I was going to put a link here but got an error saying that new users can only put two links within their reply ¯\_(ツ)\_/¯.

This is a Discourse default, if you use the forum your trust level will go up quite quickly and this limit will be lifted.

---

<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:** [March 8, 2024, 10:13am UTC](https://forum.ansible.com/t/how-to-get-deb822-repository-module-to-work-with-core-2-14-3/3721/4 "2024-03-08T10:13:47Z")

</div>

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