fixing yaml error in qadevel-stg playbook, making more standard
This commit is contained in:
parent
b0c2c02420
commit
e564e11fe0
1 changed files with 8 additions and 7 deletions
|
@ -97,9 +97,6 @@
|
|||
- "/srv/private/ansible/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
||||
tasks:
|
||||
- name: ensure ServerName is set in ssl.conf
|
||||
replace: dest=/etc/httpd/conf.d/ssl.conf regexp='^#ServerName .*$' replace='ServerName {{ external_hostname }}:443'
|
||||
|
@ -107,11 +104,15 @@
|
|||
- name: ensure ServerName is set in httpd.conf
|
||||
replace: dest=/etc/httpd/conf/httpd.conf regexp='^#ServerName .*$' replace='ServerName {{ external_hostname }}:443'
|
||||
|
||||
|
||||
- name: create dirs for static sites
|
||||
file: path={{ item.document_root }} state=directory owner=apache group=apache mode=1755
|
||||
with_items: static_sites
|
||||
|
||||
- name: generate virtualhosts for static sites
|
||||
template: src={{ files }}/httpd/newvirtualhost.conf.j2 dest=/etc/httpd/conf.d/{{ item.name }}.conf owner=root group=root mode=0644
|
||||
with_items: static_sites
|
||||
- name: generate virtualhosts for static sites
|
||||
template: src={{ files }}/httpd/newvirtualhost.conf.j2 dest=/etc/httpd/conf.d/{{ item.name }}.conf owner=root group=root mode=0644
|
||||
with_items: static_sites
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue