forked from mamchenkov/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevel.yml
46 lines (38 loc) · 1018 Bytes
/
devel.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
# This playbook is for getting things which
# are used for the development.
---
- name: Development root setup
hosts: localhost
become: yes
pre_tasks:
- name: Install development packages
include_role:
name: tools
tasks_from: rpm
vars:
rpms: "{{ devel_packages }}"
roles:
- role: geerlingguy.composer
- role: geerlingguy.redis
- role: geerlingguy.memcached
- role: sjpbeale.mongodb
- role: andrewrothstein.terraform
- role: geerlingguy.docker
post_tasks:
- name: Start MariaDB service
service: name=mariadb state=started enabled=true
- name: Development user setup
hosts: localhost
roles:
- role: stephdewit.nvm
nvm_version: 'latest'
nvm_node_version: 'lts'
nvm_install_deps: false
nvm_shell_init_file: '~/.bashrc'
post_tasks:
- name: Add User {{ ansible_user_id }} to Docker
become: yes
user:
name: "{{ ansible_user_id }}"
groups: docker
append: yes