---
- hosts: jenkins
  remote_user: root
  gather_facts: False

  vars_prompt:
    - name: ci_ip
      prompt: "Enter IP address of Jenkins host"

  tasks:
    - name: Set IP as fact
      set_fact:
        jenkins_ip: "{{ ci_ip }}"
    - name: Install Python
      raw: "apt-get update && apt-get -y -q install python"

- hosts: jenkins

  remote_user: root
  gather_facts: True

  roles:
    - role: basic_stuff
      tags:
        - basic

    - role: firewall
      tags:
        - firewall

    - role: jenkins_user
      tags:
        - user

    - role: angstwad.docker_ubuntu
      docker_group_members:
        - jenkins
      tags:
        - docker

    - role: docker_config
      tags:
        - config

    - role: docker_service
      tags:
        - service

---
- hosts: jenkins
  remote_user: root
  gather_facts: False

  vars_prompt:
    - name: ci_ip
      prompt: "Enter IP address of Jenkins host"

  tasks:
    - name: Set IP as fact
      set_fact:
        jenkins_ip: "{{ ci_ip }}"
    - name: Install Python
      raw: "apt-get update && apt-get -y -q install python"

- hosts: jenkins

  remote_user: root
  gather_facts: True

  roles:
    - role: basic_stuff
      tags:
        - basic

    - role: firewall
      tags:
        - firewall

    - role: jenkins_user
      tags:
        - user

    - role: angstwad.docker_ubuntu
      docker_group_members:
        - jenkins
      pip_version_docker_compose: 1.15.0
      tags:
        - docker

    - role: docker_config
      tags:
        - config

    - role: docker_service
      tags:
        - service

Use Docker Compose 1.15.0 to fix Ansible issue
Use Docker Compose 1.15.0 to fix Ansible issue

Ansible 2.3.x does not work with the latest Docker Compose 1.16.1.
Should be fixed in Ansible 2.4
