Jérémy Lecour
ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2777|524|2253|2462|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Fully Qualified Collection Name
23 lines
733 B
YAML
23 lines
733 B
YAML
---
|
|
- name: Copy Apache vhost
|
|
ansible.builtin.template:
|
|
src: apache-vhost.conf.j2
|
|
dest: "/etc/apache2/sites-available/{{ nextcloud_instance_name }}.conf"
|
|
mode: "0640"
|
|
notify: reload apache
|
|
tags:
|
|
- nextcloud
|
|
|
|
- name: Enable Apache vhost
|
|
ansible.builtin.file:
|
|
src: "/etc/apache2/sites-available/{{ nextcloud_instance_name }}.conf"
|
|
dest: "/etc/apache2/sites-enabled/{{ nextcloud_instance_name }}.conf"
|
|
state: link
|
|
notify: reload apache
|
|
tags:
|
|
- nextcloud
|
|
|
|
# - name: Generate ssl config
|
|
# shell:
|
|
# cmd: "/usr/local/sbin/vhost-domains {{ nextcloud_instance_name }} | /usr/local/sbin/make-csr {{ nextcloud_instance_name }}"
|
|
# creates: "/etc/nginx/ssl/{{ nextcloud_instance_name }}.conf" |