-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yml
63 lines (52 loc) · 1.82 KB
/
playbook.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
63
---
- hosts: all
become: yes
# Uncomment the line below to debug playbook execution
# strategy: debug
vars_files:
- vars/main.yml
- default.config.yml
pre_tasks:
- include: tasks/hostname.yml
- include: tasks/init-debian.yml
when: ansible_os_family == 'Debian'
static: no
- name: Ensure PHP version -specific workspace directory exists.
file:
path: "/root/php{{ php_version }}"
state: directory
mode: 0775
- name: Ensure SSH server is installed
apt: name=openssh-server state=installed
when: extra_security_enabled
roles:
# Essential roles.
- geerlingguy.git
- geerlingguy.postfix
- geerlingguy.php
- geerlingguy.php-pecl
- geerlingguy.composer
- geerlingguy.daemonize
- geerlingguy.java
- andrewrothstein.vagrant
- geerlingguy.nfs
- role: gantsign.oh-my-zsh
users: "{{ oh_my_zsh_configuration }}"
# Virtualization.
- { role: geerlingguy.docker, when: '"docker" in installed_extras' }
- { role: FGtatsuro.virtualbox, when: '"virtualbox" in installed_extras' }
# Languages.
- { role: geerlingguy.nodejs, when: '"nodejs" in installed_extras' }
- { role: geerlingguy.ruby, when: '"ruby" in installed_extras' }
# Editors and tools.
- role: gantsign.atom
users: "{{ atom_configuration }}"
when: '"atom" in installed_extras'
- { role: KeyboardInterrupt.sublime-text-3, when: '"sublime" in installed_extras' }
- { role: configure-sublime, when: '"sublime" in installed_extras' }
- { role: Oefenweb.yarn, when: '"yarn" in installed_extras' }
# Roles for security and stability.
- { role: geerlingguy.firewall, when: firewall_enabled }
- { role: geerlingguy.security, when: extra_security_enabled }
# Post-execution tasks.
- { role: post-exec }