stuvusIT.limesurvey

Limesurvey

A role to set up and configure a limesurvey instance. This role depends on an apt system.

Role Variables

Name Default/Required Description
limesurvey_release_link :heavy_check_mark: Link to the tar.gz file of the survey instance to be installed
limesurvey_mysql_database_name limesurvey The database name
limesurvey_mysql_user limesurvey Mysql user
limesurvey_mysql_host localhost Mysql host
limesurvey_mysql_port 3306 Mysql port
limesurvey_smtp_server :heavy_check_mark: SMTP server url
limesurvey_smtp_port 587 SMTP Port
limesurvey_smtp_user :heavy_check_mark: SMTP User
limesurvey_smtp_password SMTP password
limesurvey_smtp_ssl tls SMTP encryption either ssl, tls or
limesurvey_smtp_debug false SMTP debug option
limesurvey_admin_user admin Admin nickname default
limesurvey_admin_password :heavy_check_mark: Admin password
limesurvey_admin_full_name Your Name Full name of the administrator
limesurvey_admin_email [email protected] Admin email address
limesurvey_mail_admin_name Your Name Sender name for outgoing emails
limesurvey_mail_admin_address [email protected] Sender address of outgoing emails
limesurvey_mail_bounce_address [email protected] Email address for bounces
limesurvey_ldap_plugin_server_url :heavy_check_mark: Url to your ldap server
limesurvey_ldap_plugin_server_port 389 Ldap port
limesurvey_ldap_plugin_ldap_version :heavy_check_mark: Ldap version either 2 or 3'
limesurvey_ldap_plugin_opt_referrals false Select true if referrals must be followed (use false for ActiveDirectory)
limesurvey_ldap_plugin_tls false Use tls either
limesurvey_ldap_plugin_ldap_mode :heavy_check_mark: How limesurvey should connect to ldap either simplebind or searchandbind
limesurvey_ldap_plugin_search_user_attribute :heavy_check_mark: Attribute to compare to the given login can be uid, cn, mail, ...
limesurvey_ldap_plugin_user_search_base :heavy_check_mark: List of Base DN for the user search operation.
limesurvey_ldap_plugin_binddn Optional DN of the LDAP account used to search for the end-user's DN. An anonymous bind is performed if empty.
limesurvey_ldap_plugin_bindpwd `` Password of the LDAP account used to search for the end-user's DN if previoulsy set
limesurvey_ldap_plugin_mail_attribute :heavy_check_mark: LDAP attribute of email address
limesurvey_ldap_plugin_full_name_attribute :heavy_check_mark: LDAP attribute of full name
limesurvey_ldap_plugin_is_default false Set to 1 to make ldap the default authentication method
limesurvey_ldap_plugin_auto_create false Automatically create user if it exists in LDAP server
limesurvey_ldap_plugin_automatic_survey_creation false Grant survey creation permission to automatically created users
limesurvey_ldap_plugin_allow_initial_user false Allow initial user to login via LDAP
limesurvey_use_ldap false Enable the limesurvey ldap plugin

Example Playbook

- hosts: all
  become: true
  vars:
    limesurvey_release_link: "https://github.com/LimeSurvey/LimeSurvey/archive/2.72.4+171110.tar.gz"
    limesurvey_mysql_password: password
    limesurvey_smtp_server: mail01.faveve.uni-stuttgart.de
    limesurvey_smtp_port: 993
    limesurvey_smtp_user: user
    limesurvey_smtp_passwort: sichernicht
    limesurvey_smtp_ssl: "ssl"
    limesurvey_smtp_debug: false
    limesurvey_admin_user: admin
    limesurvey_admin_password: password
    limesurvey_admin_full_name: "Your Name"
    limesurvey_admin_email: [email protected]
    limesurvey_mail_admin_name: "stuvus - LimeSurvey"
    limesurvey_mail_admin_adress: "[email protected]"
    limesurvey_mail_bounce_adress: "[email protected]"
    limesurvey_ldap_plugin_server_url: ldaps://ldap01.ldap.example.com
    limesurvey_ldap_plugin_server_port: "636"
    limesurvey_ldap_plugin_ldap_version: "3"
    limesurvey_ldap_plugin_opt_referrals: false
    limesurvey_ldap_plugin_tls: false
    limesurvey_ldap_plugin_ldap_mode: searchandbind
    limesurvey_ldap_plugin_search_user_attribute: uid
    limesurvey_ldap_plugin_user_search_base:
        - dc=faveve,dc=uni-stuttgart,dc=de
    limesurvey_ldap_plugin_binddn: bind_dn
    limesurvey_ldap_plugin_bindpwd: password
    limesurvey_ldap_plugin_mail_attribute: mail
    limesurvey_ldap_plugin_full_name_attribute: cn
    limesurvey_ldap_plugin_is_default: true
    limesurvey_ldap_plugin_auto_create: true
    limesurvey_ldap_plugin_automatic_survey_creation: true
    limesurvey_ldap_plugin_allow_initial_user: true
    limesurvey_use_ldap: true
    limesurvey_ldap_plugin_extra_user_filer: ""
    limesurvey_ldap_plugin_group_search_base: ""
    limesurvey_ldap_plugin_group_search_filter: ""
    served_domains:
      - domains:
          - survey
          - limesurvey
        default_server: true
        allowed_ip_ranges:
          - 172.27.10.0/24
        https: false
        enable_http2: true
        root: /srv/limesurvey
        index_files:
          - index.php
        locations:
          - condition: /favicon.ico
            content:
            |
              log_not_found off;
              access_log off;
          - condition: /robots.txt
            content:
            |
              allow all;
              log_not_found off;
              access_log off;
          - condition: ~ \.php$
            content:
            |
              include fastcgi.conf;
              fastcgi_intercept_errors on;
              fastcgi_pass unix:/run/php/php7.0-fpm.sock;

License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Author Information

About

Sets up a limesurvey instance

Install
ansible-galaxy install stuvusIT.limesurvey
GitHub repository
License
cc-by-sa-4.0
Downloads
89
Owner
stuvus IT Team - Studierendenvertretung Universität Stuttgart