-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathmain.yml
55 lines (47 loc) · 1.25 KB
/
main.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
- hosts: pi
become: true
vars_files:
- default.config.yml
pre_tasks:
- name: Include config override file, if it exists.
include_vars: "{{ item }}"
with_fileglob:
- config.yml
tags: ['always']
- name: Include hook-pre-tasks.yml if it exists.
include_tasks: "{{ item }}"
with_first_found:
- files:
- hook-pre-tasks.yml
skip: true
tags: ['always']
- import_tasks: tasks/init.yml
roles:
- geerlingguy.security
- geerlingguy.firewall
- geerlingguy.git
- name: geerlingguy.nginx
tags: ['nginx']
- geerlingguy.pip
- geerlingguy.docker
tasks:
- name: Include hook-tasks.yml if it exists.
include_tasks: "{{ item }}"
with_first_found:
- files:
- hook-tasks.yml
skip: true
- import_tasks: tasks/docker-compose-setup.yml
- name: Copy nginx configuration into place.
template:
src: "templates/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0644
notify: restart nginx
with_items:
- src: proxy.conf.j2
dest: /etc/nginx/conf.d/proxy.conf
- src: drupal.conf.j2
dest: /etc/nginx/sites-enabled/drupal.conf
tags: ['nginx']