-
Notifications
You must be signed in to change notification settings - Fork 91
/
playbook.yml
44 lines (39 loc) · 1.01 KB
/
playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
- name: Stardew
hosts: "all"
become: true
roles:
- role: "nickjj.docker"
tags: ["docker"]
tasks:
- name: Creates directory
file:
path: /var/docker/stardew
state: directory
- name: "Copy Shit over"
copy:
src: ./docker-compose.yml
dest: /var/docker/stardew/docker-compose.yml
- name: "Copy Shit over"
copy:
src: ./asound.conf
dest: /var/docker/stardew/asound.conf
- name: "Copy Shit over"
copy:
src: ./docker
dest: /var/docker/stardew/
- name: "Copy Shit over"
copy:
src: ./configs
dest: /var/docker/stardew/configs
- name: "Copy Shit over"
copy:
src: ./config
dest: /var/docker/stardew/config
- name: Pip install docker for Ansible's docker_login and docker_service modules
pip:
name: ["docker", "docker-compose"]
- name: "Start docker-compose"
docker_service:
project_src: "/var/docker/stardew"
pull: yes