Install mod_cloudflare for apache or configure NGINX to get real IP when using cloudflare.
This role will download, compile and install mod_cloudflare for apache more information on cloudflare website
This role will add configuration file into /etc/nginx/conf.d/
to ensure all
IP's from cloudflare are set and configured to use real IP more information
on cloudflare website
Installed apache2 or nginx
ansible_cloudflare_server: should be "apache2" or "nginx" depending on which server you have installed on you machine
No dependencies
- hosts: servers
roles:
- { role: ansible-cloudflare, ansible_cloudflare_server: apache2 }
- hosts: servers
roles:
- { role: ansible-cloudflare, ansible_cloudflare_server: nginx }
BSD
Created by Alexis von Glasow for Inovia