changed
This commit is contained in:
21
ansible/playbooks/apps.yaml
Normal file
21
ansible/playbooks/apps.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: true
|
||||
vars:
|
||||
app_dir: /opt/docker/snake
|
||||
|
||||
tasks:
|
||||
- name: Create app directory
|
||||
file:
|
||||
path: "{{ app_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: Copy snake app
|
||||
copy:
|
||||
src: ../../docker/snake/
|
||||
dest: "{{ app_dir }}"
|
||||
|
||||
- name: Start snake app
|
||||
command: docker compose up -d
|
||||
args:
|
||||
chdir: "{{ app_dir }}"
|
||||
Reference in New Issue
Block a user