Skip to content
devel
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Devel branch: Build Status Master branch: Build Status

LimePepper apache role for ansible

This role handles installing the apache packages, and configuring the service

It is tested against the current versions of Ubuntu, CentOS, Fedora and Debian, and some legacy systems. You can checkout the current statuses on our Travis status page.

To install to your roles directory, use the ansible-galaxy cli:

$ ansible-galaxy install limepepper.apache

Installing

The apache service is installed to ansible hosts by importing the role into a play like so:

- hosts: webservers

  tasks:
    - import_role:
        name: limepepper.apache

Or using classic role dependency syntax:

- hosts: webservers
  roles:
    - limepepper.apache

  tasks:
    <...>

configuring

You can then use the modules to create sites like so

    - name: add a https vhost for testing
      apache_vhost_ssl:
        ServerName: mywordpresssite2.com
        ServerAliases:
          - www.mywordpresssite2.com
        DocumentRoot: /var/www/mywordpresssite2.com
        SSLCertificateKeyFile: /etc/ssl/private/ansible.com.pem
        SSLCertificateFile: /etc/ssl/crt/ansible.com.crt
        # SSLCertificateChainFile:
      notify:
        - reload apache

or

    - name: the http vhost to stage the http challenge response
      apache_vhost:
        ServerName: mywordpresssite2.com
        ServerAliases:
          - www.mywordpresssite2.com
        DocumentRoot: /var/www/mywordpresssite2.com
      register: mywordpresssite2_com_vhost
      notify:
        - reload apache

About

ansible role and modules for configuring the venerable webserver

Resources

Releases

No releases published

Packages

No packages published