---
- hosts: all
  roles:
    - configure-swap
    - ensure-docker
  tasks:
    - name: Create logging folders
      file:
        path: "/tmp/logs/{{ item }}"
        state: directory
      with_items:
        - ansible
        - build

    - name: Link logs output folder
      file:
        src: /tmp/logs
        dest: "{{ zuul.project.src_dir }}/logs"
        state: link

    - name: Install dependencies
      become: true
      pip:
        name: docker
        state: present

---
- hosts: all
  roles:
    - configure-swap
    - ensure-docker
  tasks:
    - name: Create logging folders
      file:
        path: "/tmp/logs/{{ item }}"
        state: directory
      with_items:
        - ansible
        - build

    - name: Link logs output folder
      file:
        src: /tmp/logs
        dest: "{{ zuul.project.src_dir }}/logs"
        state: link

    - name: Install python3-docker
      become: true
      package:
        name: python3-docker
        state: present

Fix gate by installing python3-docker
[ci] Fix gate by installing python3-docker

Change-Id: I34be042f7e664af69fd2892b0aa6a107fe017daf
