blob: feb26bf23fbb8d60f6a42000d3075cac3bb199be [file] [log] [blame]
Zack Williamsb313bae2020-04-22 22:00:53 -07001---
2# nginx molecule/default/verify.yml
3#
4# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
5# SPDX-License-Identifier: Apache-2.0
6
7- name: Converge
8 hosts: all
9 vars:
10 acme_username: "www-data" # make independent of the acme role
11 vhosts:
12 - name: "static.example.com"
13 default_server: true
14 extra_config: |
15 location /teapot {
16 return 418;
17 }
18 - name: "autoindex.example.com"
19 autoindex: true
20 - name: "authenticated.example.com"
21 auth_scope: "mysite"
22 - name: "proxy.example.com"
Zack Williamsd3a69fd2022-05-15 11:52:40 -070023 proxy_pass: "http://127.0.0.1:8000"
Zack Williamsb313bae2020-04-22 22:00:53 -070024 - name: "redirects"
25 aliases:
26 - "redirect.example.com"
27 redirect_url: "https://destination.example.com"
28 strip_request_uri: true
29 auth_scopes:
30 - scope: mysite
31 users:
32 - name: ghopper
33 password: verysecurepassword
34 - name: dknuth
35 password: anotherpassword
36 - scope: othersite
37 users:
38 - name: aturing
39 password: yetanotherpw
40 tasks:
41 - name: "Include nginx"
42 include_role:
43 name: "nginx"