-
Notifications
You must be signed in to change notification settings - Fork 2
/
playbook.yml
55 lines (53 loc) · 1.36 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
---
- hosts: all
become: true
vars:
etc_hosts_add_all_hosts: true
pri_domain_name: 'test.vagrant.local'
roles:
- role: ansible-etc-hosts
- hosts: stackstorm_server
become: true
vars:
nodejs_version: 6.x
pri_domain_name: 'test.vagrant.local'
stackstorm_install_packs: true
roles:
- role: ansible-mongodb
- role: ansible-nginx
- role: ansible-postgresql
- role: ansible-rabbitmq
- role: ansible-nodejs
- role: ansible-stackstorm
tasks:
- hosts: stackstorm_client
become: true
vars:
create_users:
- user: '{{ stackstorm_user }}'
comment: 'Stackstorm SSH User'
generate_keys: true
# P@55w0rd
pass: '$6$8tMUxKP33/$Fb/hZBaYvyzGubO9nrlRJMjUnt3aajXZwxCifH9NYqrhjMlC9COWmNNFiMpnyNGsgmDeNCCn2wKNh0G1E1BBV0'
preseed_user: false
state: 'present'
sudo: true
system_account: false
enable_manage_ssh_keys: true
manage_ssh_keys:
- remote_user: '{{ stackstorm_user }}'
state: present
keys:
- ./{{ stackstorm_user }}@node0.pub
pri_domain_name: 'test.vagrant.local'
stackstorm_user: 'stanley'
roles:
- role: ansible-users
tags:
- "stackstorm-ssh-keys"
- "stackstorm-user"
- role: ansible-manage-ssh-keys
tags:
- "stackstorm-ssh-keys"
- "stackstorm-user"
tasks: