commit 364918d2a18a20a5b388bf9ecd6701bed48d9572 Author: Beth Date: Sat Oct 5 13:07:13 2024 -0500 Initial testing role diff --git a/README.md b/README.md new file mode 100644 index 0000000..b09d094 --- /dev/null +++ b/README.md @@ -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 diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..8955ca0 --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for nginx-ssl diff --git a/handlers/main.yml b/handlers/main.yml new file mode 100644 index 0000000..acb1b3e --- /dev/null +++ b/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for nginx-ssl diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..3507f03 --- /dev/null +++ b/meta/main.yml @@ -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. diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..347f0f3 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,6 @@ +--- +# tasks file for nginx-ssl +- name: install nginx + ansible.builtin.package: + name: nginx + state: present \ No newline at end of file diff --git a/tests/inventory b/tests/inventory new file mode 100644 index 0000000..878877b --- /dev/null +++ b/tests/inventory @@ -0,0 +1,2 @@ +localhost + diff --git a/tests/test.yml b/tests/test.yml new file mode 100644 index 0000000..bf6dce7 --- /dev/null +++ b/tests/test.yml @@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - nginx-ssl diff --git a/vars/main.yml b/vars/main.yml new file mode 100644 index 0000000..c7d8953 --- /dev/null +++ b/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for nginx-ssl