Add testing inventory and group variables
Added fully test-ready inventory and groups using vagrant and able to run repeatedly as necessary.
This commit is contained in:
parent
9f188c2674
commit
6de8f0fb50
7 changed files with 46 additions and 1 deletions
|
|
@ -7,6 +7,8 @@
|
|||
state: directory
|
||||
mode: '0755'
|
||||
become: true
|
||||
tags:
|
||||
- fs
|
||||
|
||||
- name: Ensure Caddyfile exists
|
||||
ansible.builtin.template:
|
||||
|
|
@ -14,6 +16,8 @@
|
|||
dest: "{{ caddy_caddyfile_dir }}/Caddyfile"
|
||||
validate: "docker run --rm -v %s:/Caddyfile caddy caddy validate --config /Caddyfile"
|
||||
become: true
|
||||
tags:
|
||||
- fs
|
||||
|
||||
- name: Deploy caddy to swarm
|
||||
community.general.docker_stack:
|
||||
|
|
@ -25,3 +29,5 @@
|
|||
with_items: "{{ caddy_stack }}"
|
||||
when: caddy_stack is defined
|
||||
become: yes
|
||||
tags:
|
||||
- docker-swarm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue