- name: "include role nginx-domain-setup for {{application_id}}"
  include_role:
    name: nginx-domain-setup
  vars:
    domain:   "{{ domains | get_domain(application_id) }}"
    http_port:   "{{ ports.localhost.http[application_id] }}"

- name: "docker jenkins"
  docker_compose:
    application_id: jenkins
    definition:
      application:
        image: jenkins/jenkins:lts
        restart: "{{docker_restart_policy}}"
        ports:
          - "127.0.0.1:{{ports.localhost.http[application_id]}}:8080"
        volumes:
          - jenkins_data:/var/jenkins_home
        log_driver: journald
