Commit 26d05df2 authored by Jonathan Blum's avatar Jonathan Blum

use variable for url

parent 7307d6f8
......@@ -3,3 +3,4 @@
privatebin_user: privatebin
privatebin_intsall_path: /srv/privatebin
privatebin_version: "1.3.1"
privatebin_url: privatebin.example.tld
......@@ -16,7 +16,7 @@
- name: PRIVATEBIN | INSTALL | Generate Apache vhost template
template:
src: vhost-apache.j2
dest: "{{ apache_dir }}/sites-available/privatebin.conf
dest: "{{ apache_dir }}/sites-available/{{ privatebin_url }}.conf"
owner: "{{ apache_user }}"
group: "{{ apache_user }}"
mode: 0640
<VirtualHost *:80>
ServerName YOUR_SERVER_IP
ServerName {{ privatein_url }}
DocumentRoot {{ privatein_install_path }}
ErrorLog ${APACHE_LOG_DIR}/privatebin-error.log
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment