Actions
Bug #22944
closedAnsible bootstrap tasks aren't bootstrappy enough
Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Deployment
Target version:
Story points:
-
Description
Most of our Ansible playbooks have a task that tries to bootstrap the packages you need to manage a node, like this:
- name: Bootstrap packages required for Ansible
become: yes
ansible.builtin.raw: "apt-get -o DPkg::Lock::Timeout=300 -qy {{ item }}"
loop:
- update
- install acl gnupg python3-apt python3-debian python3-psycopg2 xz-utils
As they're currently written, these don't work as intended, because by default Ansible tries to gather facts when starting a play, and that requires the managed node already have python3 at least. Every time this task appears, move it into an early play with gather_facts: no.
Updated by Brett Smith 10 months ago
- Blocks Feature #22957: Build package test Docker images with Ansible added
Updated by Brett Smith 10 months ago
- Target version set to Development 2025-06-25
- Assigned To set to Brett Smith
- Status changed from New to In Progress
This has to be fixed as part of the Docker image work.
Updated by Brett Smith 10 months ago
- Status changed from In Progress to Resolved
Applied in changeset arvados|1df8d1ce598e19c45c18fe3371b508960cc25d73.
Actions