aoache_vhost: include LE certificate generation - WIP
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
---
|
||||
# tasks file for apache_vhost
|
||||
|
||||
- name: create dedicated user
|
||||
user:
|
||||
name: "{{ apache_user }}"
|
||||
@@ -9,13 +10,6 @@
|
||||
home: "{{ apache_base_dir }}"
|
||||
shell: /bin/bash
|
||||
|
||||
- name: vhost config file
|
||||
template:
|
||||
src: vhost.conf.jj
|
||||
dest: /etc/httpd/conf.d/{{ apache_server_name }}.conf
|
||||
mode: 0644
|
||||
notify: restart apache
|
||||
|
||||
- name: php-fpm config file
|
||||
template:
|
||||
src: pool.conf.jj
|
||||
@@ -37,10 +31,21 @@
|
||||
- "{{ apache_base_dir }}/session"
|
||||
- "{{ apache_base_dir }}/wsdlcache"
|
||||
|
||||
- name: generate cert
|
||||
include_tasks: certbot.yml
|
||||
when: apache_use_certbot
|
||||
|
||||
- name: vhost config file
|
||||
template:
|
||||
src: vhost.conf.jj
|
||||
dest: /etc/httpd/conf.d/{{ apache_server_name }}.conf
|
||||
mode: 0644
|
||||
notify: restart apache
|
||||
|
||||
- name: logrotate config file
|
||||
template:
|
||||
src: logrotate.conf.jj
|
||||
dest: "/etc/logrotate.d/{{ apache_server_name }}.conf"
|
||||
dest: "/etc/logrotate.d/vhost.conf"
|
||||
mode: 0644
|
||||
|
||||
- name: goaccess
|
||||
|
||||
Reference in New Issue
Block a user