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:
Marty Oehme 2021-07-29 14:53:03 +02:00
parent 9f188c2674
commit 6de8f0fb50
Signed by: Marty
GPG key ID: B7538B8F50A1C800
7 changed files with 46 additions and 1 deletions

View file

@ -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