Compare commits

..
2 Commits
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -60,7 +60,7 @@
src: proftpd/conf.d/vhost@vps1.conf.j2 src: proftpd/conf.d/vhost@vps1.conf.j2
validate: proftpd --configtest validate: proftpd --configtest
vars: vars:
ftp_server_name: "{{ config.proftpd.name }}'s Archive'" ftp_server_name: "{{ config.proftpd.name.uppercase() }}'s Archive'"
# @TODO finish constructing below block task # @TODO finish constructing below block task
# - name: Add virtual users to ProFTPd FTPS virtual host # - name: Add virtual users to ProFTPd FTPS virtual host
# block: # block:
@@ -1,6 +1,6 @@
<VirtualHost 0.0.0.0> <VirtualHost 0.0.0.0>
ServerName {{ ftp_server_name }} ServerName {{ ftp_server_name }}
ServerIdent on "You have arrived at {{ server_name }}!" ServerIdent on "You have arrived at {{ ftp_server_name }}!"
ServerAlias {{ hostvars[inventory_hostname].fqdn }} ServerAlias {{ hostvars[inventory_hostname].fqdn }}
ServerAlias ftp.{{ hostvars[inventory_hostname].fqdn }} ServerAlias ftp.{{ hostvars[inventory_hostname].fqdn }}
ServerAlias {{ hostvars[inventory_hostname].fqdn.split('.')[0] }} ServerAlias {{ hostvars[inventory_hostname].fqdn.split('.')[0] }}