refactored wordpress role

This commit is contained in:
2023-12-06 14:40:18 +01:00
parent b53ff57f8a
commit 4a540e21b3
4 changed files with 32 additions and 22 deletions

View File

@@ -74,16 +74,12 @@
- name: setup wordpress hosts
hosts: wordpress
become: true
tasks:
- name: Include docker-wordpress role for each domain
include_role:
name: docker-wordpress
vars:
domain: "{{ item }}"
http_port: 8003
loop: "{{ wordpress_domains }}"
loop_control:
loop_var: item
roles:
- role: docker-wordpress
vars:
domain: "{{ item }}"
http_port: 8003
- name: setup mediawiki hosts
hosts: mediawiki
become: true