V1
This commit is contained in:
15
roles/demolamp/tasks/deploy.yml
Normal file
15
roles/demolamp/tasks/deploy.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
# Deploy stage -------------------------------------------------------------
|
||||
# -- Target: The first node only.
|
||||
# -- Objective: Stack startup.
|
||||
|
||||
- block:
|
||||
- name: run docker
|
||||
community.docker.docker_container:
|
||||
name: "{{ stackName }}"
|
||||
state: started
|
||||
recreate: yes
|
||||
image: "{{ demolamp.imageName }}:{{ ansTagVer }}"
|
||||
ports:
|
||||
- "80:80"
|
||||
|
||||
Reference in New Issue
Block a user