Compare commits

...

2 Commits

Author SHA1 Message Date
89334758ea added defaults, removed old code 2023-06-28 22:58:27 +02:00
897666f459 added defaults 2023-06-28 22:58:11 +02:00
2 changed files with 3 additions and 10 deletions

3
defaults/main.yml Normal file
View File

@ -0,0 +1,3 @@
---
docroot: /var/www/html
domainname: "{{ inventory_hostname }}"

View File

@ -9,16 +9,6 @@
include_role: include_role:
name: acmesh name: acmesh
- name: set DocumentRoot
set_fact:
docroot: "/var/www/html"
when: docroot is not defined
- name: set domainname
set_fact:
domainname: "{{ inventory_hostname }}"
when: domainname is not defined
- name: create wwwroot - name: create wwwroot
file: file:
path: "{{ docroot }}" path: "{{ docroot }}"