-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.yml
67 lines (55 loc) · 1.08 KB
/
web.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
56
57
58
59
60
61
62
---
- name: Python pre install
hosts: webserver
gather_facts: False
become: yes
pre_tasks:
- name: Install python for Ansible
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
changed_when: False
- setup: # aka gather_facts
tags: intro
- name: Install common packages, create user
hosts: webserver
become: yes
roles:
- common
- name: Create mysql user and db
hosts: webserver
become: yes
roles:
- mysql
tags: mysql
- name: Install djangobb
hosts: webserver
gather_facts: False
become: yes
user: "{{ user_name }}"
#become_user: "{{ user_name }}"
roles:
- app
tags: djangobb
- name: Set supervisor settings
hosts: webserver
become: yes
roles:
- supervisor
tags: supervisor
- name: Set tor settings
hosts: webserver
become: yes
roles:
- tor
tags: tor
- name: Set nginx settings
hosts: webserver
become: yes
roles:
- nginx
tags: nginx
- name: Generate report file
hosts: webserver
become_user: "{{ ansible_user_id }}"
roles:
- maintenance
tags: report