ggiinnoo.webserver

ggiinnoo.webserver Setting Up a Web Server (nginx | httpd)

This playbook helps you set up either an httpd or nginx web server. If you need virtual hosts, check out my other Ansible roles.

This playbook will check if you already have nginx or httpd installed. If you choose nginx and httpd is already installed, it will stop and do nothing.

TODO

Requirements

There are currently no requirements.

Role Variables

Everything will work without any changes, but you can customize a few variables. The default values are listed below. The most important variable is:

webService: httpd

You can change this to either httpd or nginx. The default is httpd.

You can also set the ports here:

webServicePort: 80
webServiceSecurePort: 443

To disable server signatures, set:

webServiceSignatures: true

You can set these additional variables, but you usually won't need them:

apacheErrorLog: logs/error_log
apacheAccessLog: logs/access_log
apacheSecureErrorLog: logs/ssl_error_log
apacheSecureAccessLog: logs/ssl_access_log
apacheLogLevel: warn
apacheUser: apache
apacheGroup: apache
apacheAdmin: root@localhost
apacheConfLocationSSL: "/etc/httpd/conf.d/ssl.conf"
apacheConfLocation: "/etc/httpd/conf/httpd.conf"

These are the equivalent nginx settings, which are fewer:

nginxErrorLog: /var/log/nginx/error.log
nginxAccessLog: /var/log/nginx/access.log
nginxConfLocation: /etc/nginx/nginx.conf

Dependencies

None

Example Playbook

- name: Setup webserver
  hosts: all
  roles:
    - ggiinnoo.webserver

License

BSD

Author Information

Creator: Gino Jansen
Website: www.ginojansen.nl
Informazioni sul progetto

Configure a webserver

Installa
ansible-galaxy install ggiinnoo.webserver
Licenza
Unknown
Download
1.6k
Proprietario
Code doesn't scare me.. The server does.