Compare commits

...

2 Commits

Author SHA1 Message Date
Alexander Gabriel 89334758ea added defaults, removed old code 2023-06-28 22:58:27 +02:00
Alexander Gabriel 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:
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
file:
path: "{{ docroot }}"