summaryrefslogtreecommitdiff
path: root/salt/openbook/ansible/files/docker_compose.yaml
blob: 8333a4b406ee57608bd3b549db046d9b5d2457d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
- name: "Install docker-compose"
  hosts: target
  tasks:
    - name: "Install packages"
      apt:
        pkg: "{{ item }}"
        state: present
      with_items:
        - docker-compose
        - apache2-utils
      when: ansible_distribution == "Ubuntu"

    - name: "Install packsges"
      portage:
        package: "{{ item }}"
        update: yes
        changed_use: yes
      with_items:
        - app-emulation/docker-compose
        - app-admin/apache-tools
      when: ansible_distribution == "Gentoo"