[Framdate] nginx configuration

certbot_on_virtu
pa 2020-05-02 16:47:28 +02:00
parent b51d53fe35
commit bc932b0617
1 changed files with 15 additions and 3 deletions

View File

@ -4,8 +4,8 @@
apt: apt:
update_cache: true update_cache: true
name: name:
- apache2 - nginx
- libapache2-mod-php - php-fpm
- php-intl - php-intl
- php-mbstring - php-mbstring
- php-pgsql - php-pgsql
@ -37,15 +37,27 @@
retries: 3 retries: 3
until: composer_result is succeeded until: composer_result is succeeded
- name: - name: Create log file
file: file:
path: "{{ framadate.path }}/admin/stdout.log" path: "{{ framadate.path }}/admin/stdout.log"
owner: www-data owner: www-data
state: touch state: touch
mode: 0600 mode: 0600
- name: Configure nginx site
template:
src: nginx-site.j2
dest: /etc/nginx/sites-available/framadate.conf
- name: Enable nginx site
file:
src: /etc/nginx/sites-available/framadate.conf
dest: /etc/nginx/stes-enabled/framadate.conf
state: link
- name: Indicate role in motd - name: Indicate role in motd
template: template:
src: update-motd.d/05-service.j2 src: update-motd.d/05-service.j2
dest: /etc/update-motd.d/05-framadate dest: /etc/update-motd.d/05-framadate
mode: 0755 mode: 0755