Verified Commit 46403950 authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/aurweb: Remove maintenance role from the tasks and add the maintenance mode to AUR config

Since the AUR has its own maintenance mode, there is no need for using the
maintenance role, so it was removed. Added a check on the aurweb config file
that checks for the maintenance variable and uses the variable for allowing
the ip address of the person running the playbook to access the AUR.
parent 43cb1293
--- ---
- name: run maintenance mode
include_role:
name: maintenance
vars:
service_name: "site"
service_domain: "{{ aurweb_domain }}"
service_alternate_domains: []
service_nginx_conf: "{{ aurweb_nginx_conf }}"
when: maintenance is defined
- name: install required packages - name: install required packages
pacman: name=git,sudo,python-mysql-connector,python-pygit2,python-srcinfo,python-bleach,python-markdown,pyalpm,make,asciidoc,php-apcu,php-apcu-bc state=present pacman: name=git,sudo,python-mysql-connector,python-pygit2,python-srcinfo,python-bleach,python-markdown,pyalpm,make,asciidoc,php-apcu,php-apcu-bc state=present
......
...@@ -4,7 +4,12 @@ user = {{ aurweb_db_user }} ...@@ -4,7 +4,12 @@ user = {{ aurweb_db_user }}
password = {{ vault_aurweb_db_password }} password = {{ vault_aurweb_db_password }}
[options] [options]
{% if maintenance is defined and maintenance %}
enable_maintenance = 1
maintenance-exceptions = {{ maintenance_remote_machine }}
{% else %}
enable-maintenance = 0 enable-maintenance = 0
{% endif %}
localedir = {{ aurweb_dir }}/web/locale/ localedir = {{ aurweb_dir }}/web/locale/
cache = {{ aurweb_cache }} cache = {{ aurweb_cache }}
cache_pkginfo_ttl = {{ aurweb_cache_pkginfo_ttl }} cache_pkginfo_ttl = {{ aurweb_cache_pkginfo_ttl }}
......
Supports Markdown
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