Name | Description |
---|---|
Version | 0.1 |
Updated | 03.22.2015 |
Ansible Version | 1.8.4 |
Author | Johnny Martin |
Website | http://configure.systems/ |
License | MIT |
git clone https://github.com/configuresystems/ansible-apache2-passenger.git roles/ansible-apache2-passenger
# Create a playbook file to use, there's a sample one in tests/test.yml
# Create a group_vars or update the default values in defaults/main.yml
ansible-playbook -i path/to/inventory ansible-playbook.yml
An Ansible playbook to automate the installation of Apache2. It can generate self-signed SSL certificates, along with including support for Passenger.
Ansible installed on the local machine.
pip install ansible
git clone git://github.com/ansible/ansible.git --recursive
cd ./ansible
source ./hacking/env-setup
git clone http://github.com/configuresystems/ansible-apache2-passenger
- Create a vars file in your group_vars, host_vars, set vars in the Playbook, or update the 'defaults/main.yml' file
- run the Ansible playbook, the fastest way is:
ansible-playbook ansible-apache2-passenger.yml
- port: Port that the virtualhost utilizes
- server_name: Domain name you wish the virtualhost to use
- server_alias: Alias the virtualhost will use
- document_root: Base directory where site files will reside
- document_owner: Owner of the document root
- document_group: Group of the document root
- ssl_crt: If using SSL, where to put the CRT file
- ssl_key: If using SSL, where to put the KEY file
- ssl_ca_chain: If using SSL, where to put the CA.CRT file
- SSL: Boolean.
- SELF_SIGNED: Boolean.
- PASSENGER: Boolean.
Assuming DNS is point to the server for the {{ server_name }}; Visit the apache2 server via the browser by going to:
http://{{ server_name }}
Finish up the install process by adding the database info and product key probvided by Atlassian.
service apache2 stop
service apache2 start
service apache2 restart