summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/ansible-galaxy-collection-cli/tasks/main.yml
blob: b74acd3c384b8065beb04a8ac5d0db1c01aa24d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- block:
    - name: Install distlib
      pip:
        name: distlib
        state: present
      register: distlib

    - set_fact:
        output_dir: "{{ lookup('env', 'OUTPUT_DIR') }}"

    - import_tasks: manifest.yml
      environment:
        ANSIBLE_NOCOLOR: 1
  always:
    - name: Uninstall distlib
      pip:
        name: distlib
        state: absent
      when: distlib is changed