Jason Rothstein 2937eba7c2
Only template configs if config variable is set
Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
2024-12-28 18:57:08 -06:00
2024-12-27 19:51:12 -06:00
2021-10-24 22:35:34 -05:00
2024-12-27 19:42:15 -06:00
2021-10-25 03:34:04 +00:00
2021-10-24 22:35:34 -05:00
2021-10-25 03:34:04 +00:00
2021-10-27 00:02:56 -05:00

Role Name

A brief description of the role goes here.

Requirements

Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.

Feature List

  • Apache deployed
  • Enables HTTP/2
  • Enables and convets connections to HTTPS by default
  • ACME based TLS Certificate request and renewal
  • ACME uses Lets Encrypt by default, alternative ACME Providers may be specified
  • Optionally act as a proxy to another URL
  • Optionally redirect traffic to another URL
  • Optionally populate DocumentRoot with git clone
  • Multiple DocumentRoots supported, with aliases

Role Variables

  • Lets Encrypt configuration

  • Web Host variable of type list

    • http_vhost
  • required dictionary elements

    • fqdn : The FQDN of the website
  • optional dictionary elements

    • aliases : list of alternative FQDN for the website
    • proxy : URL to direct traffic for the FQDN to, e.g. http://localhost:8080
    • redirect : Where should we send traffic?
    • repo : git URL of website repo to clone/update
lets_encrypt_admin: 'acme@example.com'
lets_encrypt_url: 'https://ipa.example.com'
http_vhost:
  - fqdn: 'www.example.com'
    aliases:
      - 'exmaple.com'
    proxy: 'http://localhost:8080'

Dependencies

A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
     - { role: username.rolename, x: 42 }

License

BSD

Author Information

An optional section for the role authors to include contact information, or a website (HTML is not allowed).

Description
No description provided
Readme 142 KiB
Languages
ApacheConf 100%