-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.yml
36 lines (36 loc) · 801 Bytes
/
setup.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
---
- hosts: virtualpress
become: true
become_user: root
become_method: sudo
pre_tasks:
- name: Update apt cache
apt:
update_cache: yes
- name: Install software-properties-common
apt:
name: software-properties-common
state: latest
- name: Install common utilities
apt:
name: "{{ packages }}"
state: latest
vars:
packages:
- unzip
- htop
- acl
- name: Update installed software to latest versions
apt:
upgrade: dist
- name: Add Vagrant user to www-data group
user:
name: ubuntu
groups: www-data
append: yes
roles:
- mysql
- apache
- php
- wp-cli
- wordpress