# Ansible publishing thread

**URL:** <https://community.coops.tech/t/ansible-publishing-thread/2105>\
**Category:** Technology\
**Tags:** ansible\
**Created:** [23 May 2020 14:21 UTC](https://community.coops.tech/t/ansible-publishing-thread/2105 "2020-05-23T14:21:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![decentral1se](https://community.coops.tech/user_avatar/community.coops.tech/decentral1se/32/3122_2.png) [@decentral1se](https://community.coops.tech/u/decentral1se)\
**Post date:** [23 May 2020 14:21 UTC](https://community.coops.tech/t/ansible-publishing-thread/2105/1 "2020-05-23T14:21:37Z")

</div>

Use this thread to publish your new roles/collections/scripts!

Also see the [category introduction](https://community.coops.tech/t/about-the-ansible-category/2103) for more information.

---

<div class="post-metadata">

**Author:** ![decentral1se](https://community.coops.tech/user_avatar/community.coops.tech/decentral1se/32/3122_2.png) [@decentral1se](https://community.coops.tech/u/decentral1se)\
**Post date:** [23 May 2020 14:24 UTC](https://community.coops.tech/t/ansible-publishing-thread/2105/2 "2020-05-23T14:24:38Z")

</div>

I’ll kick it off with two things we got out at [Autonomic](https://autonomic.zone/) recently.

1. [molecule-hetznercloud](https://git.autonomic.zone/autonomic-cooperative/molecule-hetznercloud): a plugin for [Molecule](https://molecule.readthedocs.io/en/latest/) which allows for simple automation for integration testing of Ansible roles on Hetzner VPSes.

2. [autonomic.gandi](https://git.autonomic.zone/autonomic-cooperative/autonomic.gandi): a role for configuring records for [Gandi](https://www.gandi.net/en) DNS. It’s not quite finished but it works for now (btw, it’s a library, so the `tasks/main.yml` is empty)

---

<div class="post-metadata">

**Author:** ![decentral1se](https://community.coops.tech/user_avatar/community.coops.tech/decentral1se/32/3122_2.png) [@decentral1se](https://community.coops.tech/u/decentral1se)\
**Post date:** [23 May 2020 14:26 UTC](https://community.coops.tech/t/ansible-publishing-thread/2105/3 "2020-05-23T14:26:11Z")

</div>

I’ve also seen a sick amount of good coop related Ansible work going over at the following:

1. [https://coophub.io/topics/ansible](https://coophub.io/topics/ansible)
2. [https://coophub.io/search?q=ansible](https://coophub.io/search?q=ansible)

🥳

---

<div class="post-metadata">

**Author:** ![decentral1se](https://community.coops.tech/user_avatar/community.coops.tech/decentral1se/32/3122_2.png) [@decentral1se](https://community.coops.tech/u/decentral1se)\
**Post date:** [26 January 2021 15:54 UTC](https://community.coops.tech/t/ansible-publishing-thread/2105/4 "2021-01-26T15:54:27Z")

</div>

At Autonomic, we’re started using Webarchs [fail2ban](https://git.coop/webarch/fail2ban) and [debug](https://git.coop/webarch/debug) roles internally to handle our infrastructure. This has been fun and useful! I’ve asked @chrisc to publish git tags on those roles so that we can pin against them in our `requirements.yml` file. I also got stuck in an added [Molecule](https://molecule.readthedocs.io/) based testing to the fail2ban role (see [this PR](https://git.coop/webarch/fail2ban/-/merge_requests/1)) which is a win for anyone who uses this role and makes it easier to maintain going forward as something shared between both coops. If things change, check if the tests pass, simple!

Unrelated to that work, as part of the initial bootstrapping for [meet.coop](https://www.meet.coop/), a lot of Ansible work got published over at [git.coop/meet](https://git.coop/meet) which might be interesting to check out.

---

<div class="post-metadata">

**Author:** ![decentral1se](https://community.coops.tech/user_avatar/community.coops.tech/decentral1se/32/3122_2.png) [@decentral1se](https://community.coops.tech/u/decentral1se)\
**Post date:** [3 June 2022 08:17 UTC](https://community.coops.tech/t/ansible-publishing-thread/2105/5 "2022-06-03T08:17:40Z")

</div>

We’ve published a bunch of Ansible roles at Autonomic at long last!

Here’s a [blog post](https://autonomic.zone/blog/ansible-roles/) if you’re interested ❤

Boosts welcome: [Autonomic Co-op: "we've finally managed to publish a bunch of the A…" - Sunbeam City 🌻](https://sunbeam.city/@autonomic/108412557029468033)

---

<div class="post-metadata">

**Author:** ![chris](https://community.coops.tech/user_avatar/community.coops.tech/chris/32/2_2.png) [@chris](https://community.coops.tech/u/chris)\
**Post date:** [16 July 2022 09:22 UTC](https://community.coops.tech/t/ansible-publishing-thread/2105/6 "2022-07-16T09:22:15Z")

</div>

The [Ansible role you have published](https://git.autonomic.zone/autonomic-cooperative/autonomic.discourse-email) looks like a copy of the [one I originally wrote for this forum](https://git.coop/webarch/discourse)? This role has had a lot of updates since and at some point I intend to seperate the Postfix tasks into a seperate role.

One nice improvement I’ve made since you copied it is to [read the Postfix config as JSON](https://git.coop/webarch/discourse/-/blob/5e626acd11ff7c2a173518c001f4e6a728ff439b/tasks/email.yml#L94) so that tasks can be set to only run when things are to be changed. Also since I last updated it [JC has added a postconf parser](https://github.com/kellyjonbrazil/jc/issues/248) so that could be added at some point.
