-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmain.yml
42 lines (33 loc) · 861 Bytes
/
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
- name: DO
hosts: localhost
gather_facts: false
vars_files:
- ./defaults/vars.yml
tasks:
- include: ./tasks/do.yml
- name: Initial Configuration
hosts: do
remote_user: root
vars_files:
- ./defaults/vars.yml
handlers:
- include: ./handlers/main.yml
tasks:
- name: Wait for host
local_action: "wait_for port: 22 host: {{ inventory_hostname }}"
- include: ./tasks/users.yml
- include: ./tasks/server.yml
- include: ./tasks/certificate.yml
- include: ./tasks/server-post-certificate.yml
- include: ./tasks/security.yml
- include: ./tasks/swapfile.yml
- include: ./tasks/papertrail.yml
- name: Deployment
hosts: do
vars_files:
- ./defaults/vars.yml
remote_user: "{{system_user}}"
handlers:
- include: ./handlers/main.yml
tasks:
- include: ./tasks/project.yml