---
- hosts: all
  become: yes
  gather_facts: yes

  vars_files:
    - vars/main.yml

  roles:
    - role: image-name
    - role: default-user
    - role: systemd-networkd
      when: ansible_distribution_major_version >= '17'
    - role: repos
    - role: cloud-init
    - role: ntp
    - role: jenkins
    - role: vagrant
      when: ansible_distribution_major_version >= '18'
    - role: podman
      when: ansible_distribution_major_version >= '20'
    - role: cleanup

---
- hosts: all
  become: yes
  gather_facts: yes

  vars_files:
    - vars/main.yml

  roles:
    - role: image-name
    - role: default-user
    - role: systemd-networkd
      when: ansible_distribution_major_version >= '17'
    - role: repos
    - role: cloud-init
    - role: ntp
    - role: jenkins
    - role: vagrant
      when: ansible_distribution_major_version >= '18'
    - role: docker
    - role: podman
      when: ansible_distribution_major_version >= '20'
    - role: cleanup

Add docker to jenkins slaves
Add docker to jenkins slaves

Change-Id: Ie0a1a175adcc4564c281bec58d8087eb427a7975
