Automate light server
Co-authored-by: J <j@jsts.xyz>
This commit is contained in:
parent
aefdd123a4
commit
e74a50e873
40 changed files with 401 additions and 10 deletions
20
playbooks/roles/nginx/meta/argument_specs.yml
Normal file
20
playbooks/roles/nginx/meta/argument_specs.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
argument_specs:
|
||||
main:
|
||||
options:
|
||||
nginx__enable_https_redirect:
|
||||
description: Redirect HTTP traffic to HTTPS
|
||||
type: bool
|
||||
required: false
|
||||
nginx__configs:
|
||||
description: Configuration files to add to /etc/nginx/conf.d/
|
||||
type: list
|
||||
elements: dict
|
||||
required: false
|
||||
options:
|
||||
name:
|
||||
description: Name of the config file without file extension
|
||||
type: str
|
||||
content:
|
||||
description: Content of the config file
|
||||
type: str
|
16
playbooks/roles/nginx/meta/main.yml
Normal file
16
playbooks/roles/nginx/meta/main.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
dependencies:
|
||||
- role: distribution_check
|
||||
vars:
|
||||
distribution_check__supported_distributions:
|
||||
- name: Debian
|
||||
versions:
|
||||
- "10"
|
||||
- "11"
|
||||
- role: add_apt_repository
|
||||
vars:
|
||||
add_apt_repository__https_repo: false
|
||||
add_apt_repository__keyring_url: https://nginx.org/keys/nginx_signing.key
|
||||
add_apt_repository__keyring_path: /usr/share/keyrings/nginx-archive-keyring.gpg
|
||||
add_apt_repository__repo: deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg]
|
||||
http://nginx.org/packages/{{ ansible_facts.distribution | lower }} {{ ansible_facts.lsb.codename }} nginx
|
||||
add_apt_repository__filename: nginx.list
|
Loading…
Add table
Add a link
Reference in a new issue