Project

General

Profile

Actions

Bug #22944

closed

Ansible bootstrap tasks aren't bootstrappy enough

Added by Brett Smith 10 months ago. Updated 10 months ago.

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.


Related issues 1 (0 open1 closed)

Blocks Arvados - Feature #22957: Build package test Docker images with AnsibleResolvedBrett SmithActions
Actions #1

Updated by Brett Smith 10 months ago

  • Description updated (diff)
Actions #2

Updated by Brett Smith 10 months ago

  • Blocks Feature #22957: Build package test Docker images with Ansible added
Actions #3

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.

Actions #4

Updated by Brett Smith 10 months ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF