diff options
Diffstat (limited to 'roles/web')
-rw-r--r-- | roles/web/files/gondul.conf | 39 | ||||
-rw-r--r-- | roles/web/handlers/main.yml | 3 | ||||
-rw-r--r-- | roles/web/tasks/main.yml | 44 |
3 files changed, 0 insertions, 86 deletions
diff --git a/roles/web/files/gondul.conf b/roles/web/files/gondul.conf deleted file mode 100644 index 0cdbff7..0000000 --- a/roles/web/files/gondul.conf +++ /dev/null @@ -1,39 +0,0 @@ -<VirtualHost *:80> - ServerAdmin lol@example.com - ServerName gondul.gathering.org - ServerAlias gondul.gathering.org - - DocumentRoot /opt/gondul/web - ScriptAlias /api/write/ /opt/gondul/web/api/write/ - ScriptAlias /api/read/ /opt/gondul/web/api/read/ - ScriptAlias /api/public/ /opt/gondul/web/api/public/ - <Directory "/opt/gondul/web/api/write/"> - AllowOverride None - Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch - </Directory> - <Directory "/opt/gondul/web/api/read/"> - AllowOverride None - Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch - </Directory> - <Directory "/opt/gondul/web/api/public/"> - AllowOverride None - Options +ExecCGI -MultiViews +Indexes +SymLinksIfOwnerMatch - Require all granted - </Directory> - <Directory "/opt/gondul/web"> - AllowOverride None - Options Indexes FollowSymLinks MultiViews - AddDefaultCharset UTF-8 - Require all granted - </Directory> - - ErrorLog /var/log/apache2/error-nms.example.com.log - - # Possible values include: debug, info, notice, warn, error, crit, - # alert, emerg. - LogLevel warn - - CustomLog /var/log/apache2/access-nms.example.com.log combined - ServerSignature On - -</VirtualHost> diff --git a/roles/web/handlers/main.yml b/roles/web/handlers/main.yml deleted file mode 100644 index 407739b..0000000 --- a/roles/web/handlers/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -- name: restart apache - service: name=apache2 state=restarted diff --git a/roles/web/tasks/main.yml b/roles/web/tasks/main.yml deleted file mode 100644 index b716f87..0000000 --- a/roles/web/tasks/main.yml +++ /dev/null @@ -1,44 +0,0 @@ -- name: Install front-packages - apt: - name: "{{ item }}" - state: present - with_items: - - libcapture-tiny-perl - - libcommon-sense-perl - - libdata-dumper-simple-perl - - libdbd-pg-perl - - libdbi-perl - - libdigest-perl - - libgd-perl - - libgeo-ip-perl - - libhtml-parser-perl - - libhtml-template-perl - - libjson-perl - - libjson-xs-perl - - libnetaddr-ip-perl - - libnet-cidr-perl - - libnet-ip-perl - - libnet-oping-perl - - libnet-rawip-perl - - libsnmp-perl - - libsocket6-perl - - libsocket-perl - - libswitch-perl - - libtimedate-perl - - perl - - perl-base - - perl-modules - - libfreezethaw-perl - - apache2 - -- apache2_module: - state: present - name: cgid - notify: restart apache -- command: a2dissite 000-default - ignore_errors: true -- name: Enable gondul-config - copy: - dest: /etc/apache2/sites-enabled/ - src: gondul.conf - notify: restart apache |