Skip to content

Install Ansible with Pipx#84

Merged
lisaSW merged 5 commits intodevelopfrom
pipx-install-ansible
Nov 24, 2025
Merged

Install Ansible with Pipx#84
lisaSW merged 5 commits intodevelopfrom
pipx-install-ansible

Conversation

@0x6d6f7468
Copy link
Contributor

Install Ansible using pipx instead of using Linux package managers. Requires pipx as an additional dependency.

Resolves a version conflict issue for RPM distributions that occurs when installing to a remote Ubuntu target. dnf provides ansible core version 2.14.18, pipx provides version 2.15.13, which includes a back-ported patch for this issue.

@SamuelCarroll
Copy link

Privately contacted, but ran into an issue running this on Ubuntu 22 and Ubuntu 24.

@SamuelCarroll
Copy link

Tested locally with Ubuntu 22, 24, Centos, and Rocky all look good to me

@0x6d6f7468 0x6d6f7468 marked this pull request as ready for review November 20, 2025 23:12
@0x6d6f7468
Copy link
Contributor Author

0x6d6f7468 commented Nov 21, 2025

Testing left to complete:

  • Ubuntu
  • Ubuntu -> CentOS
  • Ubuntu -> Rocky
  • Ubuntu -> RHEL
  • CentOS
  • CentOS -> Ubuntu
  • CentOS -> Rocky
  • CentOS -> RHEL
  • Rocky
  • Rocky -> Ubuntu
  • Rocky -> CentOS
  • Rocky -> RHEL
  • RHEL
  • RHEL -> Ubuntu
  • RHEL -> CentOS
  • RHEL -> Rocky

Testing performed on DigitalOcean droplets using snapshots. All four snapshots restored after installation testing from each distro (local + all remotes).

@0x6d6f7468 0x6d6f7468 marked this pull request as draft November 21, 2025 18:39
@0x6d6f7468
Copy link
Contributor Author

0x6d6f7468 commented Nov 21, 2025

Ansible Core 2.20 (default version on Ubuntu 24.04 via pipx) deprecates things and makes breaking changes to some playbook syntax, so I'm going to try pinning Ansible version >2.15.3 to avoid needing to make a lot of breaking changes. We may need to revisit in the future, but I don't think now is the time. Converting this back into a draft until local/remote install testing against all supported distros is complete.

@0x6d6f7468 0x6d6f7468 marked this pull request as ready for review November 22, 2025 00:29
@lisaSW lisaSW merged commit 952a426 into develop Nov 24, 2025
5 checks passed
lisaSW added a commit that referenced this pull request Jan 21, 2026
* Install Ansible with Pipx (#84)

* Install Ansible using pipx instead of Linux package manager

* Prepend ~/.local/bin to path if not present (needed on Ubuntu to find pipx-installed Ansible)

* Install pipx in a virtual environment to avoid PEP 668 issues

* Pin ansible-core version 2.15.3 to avoid deprecation warnings and breaking syntax changes

* Pin ansible-core 2.15.13, force installation

* Disable permission flag checks on imported logs (#82)

* Disable permission flag checks on imported logs

* Display individual log errors even if there are no viable logs

* Revert "Disable permission flag checks on imported logs (#82)" (#85)

This reverts commit fd1bbe3.

* Update README.md

* Installer and Import Logic Updates (#90)

* Disable permission flag checks on imported logs (#86)

* Disable permission flag checks on imported logs

* Display individual log errors even if there are no viable logs

---------

Co-authored-by: Naomi Kramer <naomi@activecountermeasures.com>

* Installer Import Logic Updates (#89)

* rename sshprep to sshprep.sh

* installer updates

removed mass upgrades, cleaned up installer, removed references to unsupported OS's, improved error handling and usage messages

* threat intel feed error handling

* cleaned up installer scripts and improved helper functions

* Update ansible-installer.sh

---------

Co-authored-by: Naomi Kramer <naomi@activecountermeasures.com>

---------

Co-authored-by: Naomi Kramer <naomi@activecountermeasures.com>
Co-authored-by: Liza Tsibur <liza@activecountermeasures.com>
Co-authored-by: Keith Chew <40710037+mrkeithchew@users.noreply.github.com>
@lisaSW lisaSW deleted the pipx-install-ansible branch January 21, 2026 02:04
@lisaSW lisaSW added this to the RITA v5.1.1 milestone Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants