-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathsetup_instances.yaml
More file actions
executable file
·36 lines (33 loc) · 924 Bytes
/
Copy pathsetup_instances.yaml
File metadata and controls
executable file
·36 lines (33 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env ansible-playbook
---
- name: Configure common packages
hosts:
- security_group_webservers
- security_group_dbservers
sudo: true
roles:
- ssh-reachable
- ubuntu-updated
- hostname-configured
- name: Configure webserver packages
hosts: security_group_webservers
sudo: true
roles:
- role: jdauphant.nginx
nginx_http_params:
- sendfile "on"
- access_log "/var/log/nginx/access.log"
nginx_sites:
bar:
- listen 8080
- location / { try_files $uri $uri/ /index.html; }
- location /images/ { try_files $uri $uri/ /index.html; }
nginx_configs:
proxy:
- proxy_set_header X-Real-IP $remote_addr
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for
- name: Configure dbserver packages
hosts: security_group_dbservers
sudo: true
roles:
- { role: ANXS.postgresql }