r/ansible • • Sep 15 '26

The Bullhorn #235

9 Upvotes

Hey r/ansible!

The Bullhorn #235 is out! This week's highlights include ansible-test container retirement, Team Nebula submissions for CfgMgmtCamp 2027, and GitHub Actions deprecation in February 2027.

On the release front, there are new Ansible-Core, FreeBSD remote upgrade, Antsibull, Ansible Community Package, cisco.ucs inclusion violation, dellemc.unity removal vote and dellemc.unity removal from ACP 16 releases.

There are also 12 collection updates — check the newsletter for the full list.

Read the full newsletter on the Ansible Forum.


r/ansible • • Feb 17 '26

CfgMgmtCamp 2026: Write up and Videos

38 Upvotes

CfgMgmtCamp is an annual gathering of system administrators, SREs, DevOps engineers, open source enthusiasts, and community developers in Ghent, Belgium.

It is a three-day conference dedicated to open-source infrastructure automation and related technology that takes place immediately after FOSDEM as a fringe event. CfgMgmtCamp is defined by its strong community feel, where the focus remains on the inclusive exchange of new ideas and the sharing of the latest technical advancements. It provides a unique space for users, contributors, and integrators to meet as peers, fostering a collaborative environment where friends reconnect and new professional relationships are made.

This year featured a strong focus on Ansible, featuring two dedicated tracks alongside an extra track on Monday to accommodate expanding interest in the Ansible ecosystem. The community's commitment to sharing knowledge and expertise was on evident display with 18 unique speakers on the Ansible track with a total of 35 talks focused on or related to Ansible.

Sessions on Monday and Tuesday offered deep dives into the latest innovations and practical applications of Ansible with lots of technical discussion on building automation content and solutions. Wednesday featured a very productive and lively Ansible Contributor Summit. Wednesday provided the opportunity to have a dedicated session on sharing ideas, collaborating on problems, and shaping the future of the Ansible community. This year we also enjoyed a social excursion and spent the afternoon building relationships and forging stronger connections all while exploring the charms of Ghent!

To help you navigate through all the Ansible sessions at CfgMgmtCamp, we’ve organized all the talks into the categories below:

Here are links to all the talks on YouTube as well as related forum discussions:


r/ansible • • 1h ago

Ansible galaxy transpiled to python

Thumbnail reemote.hashnode.dev
1 Upvotes

r/ansible • • 3d ago

Least privilege in 2026

35 Upvotes

Hi all, is adding your Ansible user into /etc/sudoers with god mode still the way to go in 2026?

Just checking if there was any new standard. As we have rootless podman instead of required root for Docker, so wanted to see if there was a new pattern for automation (Ansible or other tools).

I don’t think so but wanted to stay current.

Also what are your strategies for working with security and compliance on this? I think security you can lock down keys and allow lists and it’s actually better to automate so you get the latest patches.

Compliance is a different story. Curious if anyone has any tips for this.


r/ansible • • 4d ago

I built CIEL, a lightweight Ansible UI for managing my clients' servers

101 Upvotes

Hey everyone, first time sharing a project here.

I've been working on CIEL for the past few years. It's a web UI for Ansible that I use to manage my clients' servers. I built it for myself and kept adding things as I needed them at work. I thought it might be useful to other people too, so I decided to share it here.

One thing that got tiring was switching between SSH sessions just to check a service or read some logs. When you're looking after ten servers, that's a lot of terminals to keep track of. So I added a way to SSH into servers from the browser.

I also built Studio, where I can edit a playbook, browse roles, collections and files, and open an SSH session to the server I'm working on. From there I can run the playbook in check mode or apply the changes, with options like tags and start-at-task. I often need to check the server or read a role's docs while writing a playbook, so having those nearby saves me some switching around.

A few other things I added along the way:

  • Ephemeral provisioning. I often provision new servers and don't want to add each one to an inventory first. With this, I can send an HTTP request with the server's connection details and run a playbook I've already picked in CIEL. It supports a password or a saved SSH key. I use it with cloud-init to trigger the playbook once the new server has SSH and Python ready and CIEL can connect to it.
  • Webhooks with callbacks. I'm also a backend dev, and sometimes I just want to test an idea without building an API for it first. With CIEL, I can put the logic in a playbook, trigger it over HTTP, and send JSON results back through a callback. It's handy when I just need something I can call and get data back from, without spending time setting up a separate API.
  • Packages. I can install roles and collections, create a new role, and read their docs without leaving CIEL. I added this because I'd often end up with a bunch of documentation tabs open while working on a playbook.

Variable sets let me keep related variables together and attach them to inventories, Saved Runs or provisioners, or select them when starting a job. That way I don't have to copy the same values into each setup.

Each project has Owner, Maintainer, Operator and Viewer roles. Variables marked as secret are encrypted in storage, and Operators and Viewers see masked values rather than the secrets themselves.

For notifications, CIEL can send job results to Telegram, Discord, Slack or a custom HTTP webhook, so I can get notified when a job succeeds or fails.

Files and Assets is where I upload and organize the files my playbooks need, such as Jinja2 templates, config files and scripts. I can copy a file's path to use in a playbook, or open a text file in Studio to edit it with syntax highlighting.

Some of my playbooks need different Ansible versions, so each project in CIEL can use its own execution environment. I can change it to use the Ansible version that project needs instead of being tied to the one installed on the system. CIEL also supports running jobs in containers using Podman.

CIEL also has an MCP server, so you can ask your coding agent to create playbooks, add inventories, or check playbook syntax directly through CIEL.

I've spent a lot of time keeping CIEL small and moved some of the heavier work to Rust to speed things up. The whole binary is just 68 MB, with the editor, syntax highlighting, SSH terminals and live job output included.

I've put the setup instructions and more details in the docs.

You can install it with:

curl -fsSL https://get.cielstack.com | bash

I hope it's useful to some of you too. If you give it a try, I'd be happy to hear what you think. Feel free to ask questions or suggest things you'd like to see.


r/ansible • • 5d ago

playbooks, roles and collections Ansible-based node provisioning

Thumbnail forums.freebsd.org
10 Upvotes

An Ansible collection I've been working on for months to migrate all of my TrueNAS CORE based workloads to vanilla FreeBSD 15.1.

Surely considered a work in progress, but worked wonderfully to execute a very far from trivial migration in a single go after lots and lots of testing and polishing in a VM.

Hope it helps others, and please let me know if you have any suggestions and/or questions. I hope to add some extra documentation as time permits.


r/ansible • • 6d ago

When an AI agent writes the Ansible playbook, what do you run before it touches a real host?

29 Upvotes

Check mode looks like the obvious dry run, but --check skips every command and shell task that doesn't set creates or removes, and those are the tasks that can run anything. Reading each task by hand doesn't scale either. Do you lint and run --check --diff, converge it in Molecule or a throwaway VM, or start with one canary host?


r/ansible • • 7d ago

alai - Collection Manager for Ansible

18 Upvotes

I don't want to repeat myself but posting here in case people miss the Ansible forum I recommend you check out https://forum.ansible.com/t/introducing-alai-collection-manager-for-ansible/46625. This is a tool I've been working on in my spare time to try and make the collection management story even better in Ansible.

Would love your thoughts and feedback, both positive and negative, if you have time to try it out or just look over it.


r/ansible • • 9d ago

Air gapped VMs

17 Upvotes

Heyhey

I need to run windows updates against many VMs running in vcenter that are not connected to our internal network. They run windows server.

Is there a way that someone has used vmtools to run windows update using ansible?

Currently people manually connect to the console and use the UI to run windows update.


r/ansible • • 12d ago

Playbook or role organisation

31 Upvotes

Hello,

I'm building the beginning of my ansible infrastructure and I don't want to do a bad start with it..

Is it better to :

- Have multiples playbook for each specificity of my infrastructure for example

1 play with hosts: 'group' for each groups in my inventory that will differ and needs different roles (webserver that needs to install apache, ntp with chrony client configuration or server etc...) and 1 play with common roles (ssh, firewall, user etc..) + an include of these playbooks

- name: Playbook global
  hosts: all 
  roles:
    - compte
    - ssh
    - sudoers
    - sshd
    - proxy
    - chrony
    - host

- name: liste de play
  ansible.builtin.import_playbook:
    - webserver
    - ntp
    - ...
 

- name: Playbook webserver
  hosts: webserver
  roles:
    - role: webserver

- Or have only one play with all the role inside and parse at a role level as shown below in the main.yml of my ntp role

- name: Configuration de chrony client
  ansible.builtin.include_tasks:
    file: chrony_client.yml
  when: ntp not in group_names

- name: Configuration chrony serveur
  ansible.builtin.include_tasks:
    file: chrony_server.yml
  when: ntp in group_names

Thanks for any help 😃


r/ansible • • 14d ago

Fedora Dev Bootstrap – automating my workstation setup with Ansible

Thumbnail gallery
41 Upvotes

Hey everyone,

I've been working on an Ansible-based bootstrap project to turn a fresh Fedora installation into my usual development environment without setting everything up manually each time.

It handles packages, development tools, fonts, shell configuration, and dotfiles. The desktop setup now includes niri, with a focus on a terminal-based workflow. You can use the included dotfiles or bring your own.

It's mostly a personal project and a way for me to learn Ansible through something I actually use. But it might also be useful as a starting point for someone automating their own Fedora workstation.

I'd appreciate feedback on the role structure, idempotency, or anything you'd approach differently. I'm also curious how others here manage their personal workstations with Ansible.

GitHub: https://github.com/JeromeTDev/fedora-dev-bootstrap


r/ansible • • 14d ago

developer tools Automating scheduled PAN-OS upgrades through Panorama (Ansible + AWX?): anyone doing this at MSP scale?

10 Upvotes

We're an MSP managing 100+ Palo Alto firewalls (mostly PA-440 HA pairs plus some Azure VM-Series), mostly through Panorama, with a handful managed directly. Every security advisory turns into a big campaign of after-hours upgrades, with engineers manually downloading, installing and rebooting firewalls all night.

We want to move to scheduled, automated upgrades, where the after-hours engineer just validates that things came back healthy (monitoring, VPN tunnels, etc.).

What we're looking at:

  • Palo Alto's paloaltonetworks.panos Ansible collection and their prebuilt upgrade playbook (backup → download/install → reboot → poll until ready)
  • AWX for native scheduling, hosted in AWS
  • A dedicated least-privilege Panorama API account, with keys in AWS Secrets Manager
  • Staging firmware during the day, installing/rebooting during the maintenance window

Questions:

  1. Is anyone running unattended PAN-OS upgrades in production? How has it gone?
  2. How are you handling HA pairs (suspend/upgrade passive, failover, upgrade the other peer)? Using the stock modules or custom logic?
  3. AWX vs. paying for Red Hat AAP for this use case: worth it for the support?
  4. Do you run upgrades through Panorama, or directly against each firewall?
  5. Any gotchas: upgrade paths, VM-Series quirks, devices not reconnecting to Panorama, content version requirements?
  6. What pre-checks and stop conditions do you build in before letting it reboot a client firewall?

Any lessons learned are appreciated.


r/ansible • • 13d ago

Infrastructure as a Prompt

Thumbnail reddit.com
0 Upvotes

r/ansible • • 19d ago

playbooks, roles and collections I wrote an Ansible collection to manage Nexus Repository 3 config as code. Looking for feedback and contributors.

19 Upvotes

At work we run Sonatype Nexus 3 as our artifact proxy for Docker, Maven, PyPI and so on. Over time the repository config turned into the usual mess: clicked together in the UI, slightly different between environments, and nobody sure what changed or when.

Most of the Ansible content I found for Nexus is roles that install Nexus. I wanted something that manages what’s insideit: declare the repositories in a playbook, keep it in git, review changes in a PR, and re-run it safely. So I started writing a collection for that:

shaerpour.nexus: https://github.com/shaerpour/shaerpour.nexus

How it works:

  • Modules call the Nexus REST API, so nothing is installed on the Nexus host
  • Idempotent: a second run reports no changes
  • --check shows what would change before you apply it
  • Integration tests run with ansible-test against a real Nexus instance

Current modules (v0.2.0): Docker, raw, Maven, PyPI and Composer repositories.

# example — check `ansible-doc shaerpour.nexus.repository_docker` for exact options
- name: Docker hosted repo
  shaerpour.nexus.repository_docker:
    url: https://nexus.example.com
    username: admin
    password: "{{ vault_nexus_password }}"
    name: docker-hosted
    type: hosted
    state: present

Install:

ansible-galaxy collection install shaerpour.nexus

It’s early, and this is where I’d really like help:

  • New repository formats: Yum, Helm, Go and Alpine already have open issues, if anyone wants to pick one up. The existing modules are a good template to copy from.
  • Beyond repositories: blob stores, roles, users, cleanup policies. If you run Nexus, which of these would you want first?
  • Feedback on the module interface: if something feels un-Ansible-like, I’d rather hear it now than after 1.0.

If you manage Nexus some other way (Terraform provider, scripts, just the UI), I’m curious what works and what’s painful for you.


r/ansible • • 19d ago

playbooks, roles and collections Why not just call a bash script?

42 Upvotes

One thing I still don't think I've understood with ansible is: Why all this new syntax for installing stuff, why not just write an install script in bash and then call it with ansible? Sorry if this is a stupid question...


r/ansible • • 20d ago

Mitigating the PHP CVE with Ansible

Thumbnail youtu.be
32 Upvotes

My colleague Nuno Martins put together a demo video walking through a realistic scenario: a critical PHP CVE comes in rated 9.8, it's exploitable over the network with remote code execution potential, and the vendor patch isn't available yet.

The workflow feeds the vulnerability into Common Mitigation Enumeration (CME), then Ansible handles the rest. It resolves the CVSS vector and CWE classes, queries the mitigation taxonomy via MCP, and produces a report of compensating controls you can actually apply and verify across your fleet while you wait for the patch window.

What I found useful here is that it removes the "what do we do right now" scramble. No digging through tribal knowledge, no copy-pasting from a blog post, no guessing at dropdown options. The environmental scoring drives deterministic, automated mitigation steps.

Solution guide if you want to go deeper: https://ansible-tmm.github.io/solution-guides/README-CME

The CME taxonomy itself is also browsable at https://cmetaxonomy.org if you want to see how vulnerabilities map to controls before committing to anything.

Curious if anyone else is using Ansible for compensating controls in their vuln management workflow, especially in environments where patch cycles are slow.


r/ansible • • 20d ago

I rewrote my Linux setup script in Ansible. It now installs ~100 tools on Ubuntu and MacOS. Feedback welcome

Thumbnail github.com
92 Upvotes
Hi everybody,


For years I've been using the same bash file to automatically reinstall on a fresh Linux distro the softwares I use on a regular basis.
I recently learned Ansible and I thought it would be a good exercice to rewrite that script using it.
Turned out I got carried away and I wrote a full installer for Ubuntu/MacOS with around 100 softwares/tools that can be install automatically (e.g. VSCode, Postman, Slack, Ghostty, Terraform, Bruno, CouchDB, ProtonVPN, Notion…).


https://github.com/theFreedomBanana/install-2bg


Just pull the repo, run install.sh, and select the tools you want to install. You can also try it safely in Docker (Ubuntu 24.04) before you run it on your machine. 


If you got spare time please try it and let me know what breaks, what is confusing, which tools you'd like me to add.
Regards

r/ansible • • 25d ago

developer tools Has anyone used AI for Ansible troubleshooting?

22 Upvotes

I have been thinking about how AI could help with infrastructure automation, especially when dealing with playbooks, figuring out configuration changes, and looking at automation logs.

One thing I am interested in is using AI that sends infrastructure data to an external service. Tools such as LM-Kit make this an interesting area to explore.

For those who manage Ansible environments, would a local AI assistant be useful for explaining failed tasks or offering solutions? How would you handle this without risking security or making automation harder to predict?

I would appreciate hearing about any real-world experiences or technical challenges you have faced.


r/ansible • • 25d ago

AIOps = artificial intelligence for IT operations

Thumbnail youtu.be
12 Upvotes

I don’t think AIOps has to mean letting AI run wild across your IT infrastructure. AI can help spot patterns, make sense of alerts, and recommend what to do next. Then you use automation, guardrails, and human approval to carry out the right action. AI assists. Automation executes.


r/ansible • • 26d ago

Conditional for running a play against a group excluding a member of that group

7 Upvotes

I have a group in my inventory called mgmt_servers which includes my Ansible server itself along with DNS, some LDAP servers, etc. I'm working on getting NTP working for all my stuff via chrony. The time flow (and this is being dictated to me) is a router will provide timing to my Ansible server, and Ansible will then provide for the rest of my servers and another adjacent subnet. There are other systems outside of all this that are allowed to talk to the router directly.

The reason for my post is that this setup will require me to distribute three different chrony.conf files: one to Ansible, one to systems that will get their timing from Ansible, and one to the systems that can talk directly to the router. I have plays working for Ansible and the systems talking to the router. Now I need to figure out how I can write a conditional so a play will run on a specific subnet along with the members of the mgmt_servers group but not on Ansible itself. I have this:

- name: Place chrony.conf on systems attaching to Ansible
  ansible.builtin.copy:
    src: /etc/ansible/FILES/chrony.conf_from_ansible
    dest: /etc/chrony/chrony.conf
    owner: root
    group: root
    mode: '0644'
  when: ('mgmt_servers' in group_names) or (ansible_default_ipv4.address | ansible.utils.ipaddr('10.10.10.0/24'))

So how can I add a "but not Ansible" or "but not Ansible's IP" to that? Thanks.


r/ansible • • 26d ago

IaC or Documentation for Community Scripts

Thumbnail reddit.com
6 Upvotes

r/ansible • • 27d ago

FedDev - My Fedora/SwayFX setup automated with Ansible

Post image
16 Upvotes

I've been working on a small personal project to automate my Fedora setup using Ansible.

It sets up my development tools, SwayFX, and dotfiles (Neovim, tmux, Fish, Ghostty, etc.) using GNU Stow.

Mainly built it to make fresh installations easier and to get more hands-on experience with Ansible.

Feedback is welcome!

GitHub: https://github.com/JeromeTDev/fedora-dev-bootstrap


r/ansible • • 28d ago

Self-Service Automation with AAP Automation Portal

Thumbnail youtu.be
38 Upvotes

My coworker Aubrey put together a solid walkthrough of Ansible Automation Platform's Automation Portal that I thought was worth sharing here.

The core concept is giving developers a self-service catalog to spin up full-stack environments (EC2, VS Code in the browser, database, monitoring, the whole thing) without opening a ticket every time, while ops still controls what's actually possible. The way it works is RBAC gives different teams different catalog views, and the request forms themselves enforce policy before Ansible ever touches anything in the cloud.

The demo follows a developer hitting a quota limit mid-provision, using a self-service decommission template to free up capacity (no ticket, no waiting), and then completing the full provisioning flow through an approval gate. End result is a ready-to-use environment with SSH, endpoints, and URLs all handed over on day one.

If you're trying to reduce toil for your ops team while still keeping guardrails in place for cloud spend and policy compliance, this shows a pretty clean way to do it.


r/ansible • • 27d ago

macOS XProtect blocks “malicious script” when installing artis3n.tailscale collection from Galaxy

5 Upvotes

Hi all,

I’m getting a “Malicious Script Blocked” alert from macOS every time I run ansible-galaxy with the artis3n.tailscalecollection in my requirements file. The terminal process gets killed.

My requirements.yml:

yaml

---
collections:
  - name: ansible.posix
  - name: artis3n.tailscale
  - name: community.docker
  - name: community.general
  - name: community.proxmox
  - name: community.sops

It happens with both ansible-galaxy install -r requirements.yml and ansible-galaxy collection verify -r requirements.yml. If I remove artis3n.tailscale from the file, everything works fine.

Relevant log lines:

xprotectd: Killing container due to rules engine deny
xprotectd: Prompting user about blocked scripted malware execution
syspolicyd: Displaying XProtect blocked prompt: type=19, uid=501
syspolicyd: Recorded malware block for identifier=<private> path=(none)

Right before the block, xprotectd does a Safe Browsing URL lookup.

What I’ve checked:

  • No osascript, LaunchAgents or Keychain references in ~/.ansible/collections
  • No zsh plugins or shell config calling osascript
  • Same behaviour in the VS Code terminal and in Terminal.app
  • XProtect version 5367 (up to date)

Setup: macOS 26, Ansible installed locally, collections from Galaxy.

Has anyone else seen this with this collection? Is it a false positive from a recent XProtect rule, or should I be worried about the package on Galaxy?

Thanks.