Initial testing role

This commit is contained in:
Beth Parker 2024-10-05 13:07:13 -05:00
commit 364918d2a1
8 changed files with 88 additions and 0 deletions

36
README.md Normal file
View file

@ -0,0 +1,36 @@
nginx-ssl
=========
This role handles ssl termination on the local server via nginx. This will go in front of the actual service and is done to standardize how SSL is handled, making automation vastly easier. Note that some services - most notable freeipa - require SSL termination to be handled by the service itself and thus can't use this
Requirements
------------
The certbot role is needed in order to generate and maintain the certificate
Role Variables
--------------
Any specific variables (i.e. nginx settings) should be defined from the playbook-builder
Dependencies
------------
certbot (optional)
Example Playbook Template
----------------
Playbook creation should be handled by playbook-builder
[include example of how to pass specific nginx settings from playbook template]
License
-------
GPL
Author Information
------------------
Beth Parker, ejparker@atcur.com

2
defaults/main.yml Normal file
View file

@ -0,0 +1,2 @@
---
# defaults file for nginx-ssl

2
handlers/main.yml Normal file
View file

@ -0,0 +1,2 @@
---
# handlers file for nginx-ssl

33
meta/main.yml Normal file
View file

@ -0,0 +1,33 @@
galaxy_info:
author: Beth Parker
description: Actcur maintainer
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
issue_tracker_url: https://git.actcur.com/actcur-ansible/role-nginx-ssl/issues
# Choose a valid license ID from https://spdx.org - some suggested licenses:
# - BSD-3-Clause (default)
# - MIT
# - GPL-2.0-or-later
# - GPL-3.0-only
# - Apache-2.0
# - CC-BY-4.0
license: license GPL-2.0-or-later
min_ansible_version: 2.1
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.

6
tasks/main.yml Normal file
View file

@ -0,0 +1,6 @@
---
# tasks file for nginx-ssl
- name: install nginx
ansible.builtin.package:
name: nginx
state: present

2
tests/inventory Normal file
View file

@ -0,0 +1,2 @@
localhost

5
tests/test.yml Normal file
View file

@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- nginx-ssl

2
vars/main.yml Normal file
View file

@ -0,0 +1,2 @@
---
# vars file for nginx-ssl