Skip to content

Patching ansible.cfg causes exit status 2 #349

@dbrennand

Description

@dbrennand

Hi @cidrblock

I'm using Taskfile as part of my workflow and I chain a couple of commands. The first time ADE patches my ~/.ansible.cfg file with the collections_path = . it throws a warning and subsequent exit status code 2 causing subsequent taskfile commands to not run.

$ task init
 Warning: /home/daniel/.ansible.cfg updated with 'collections_path = .' to isolate this and all workspaces.
    Note: Created virtual environment: /home/daniel/repos/project/.venv using python3.11
    Note: Installed collections include: ansible.utils, dellemc.unity, and collection
    Note: All python requirements are installed.
    Note: All required system packages are installed.
    Note: A virtual environment was specified but has not been activated.
    Note: Please activate the virtual environment:
          source .venv/bin/activate
task: Failed to run task "init": exit status 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions