-
Notifications
You must be signed in to change notification settings - Fork 0
/
site_openaz.yml
69 lines (65 loc) · 1.76 KB
/
site_openaz.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
64
65
66
67
68
69
---
# file: site_openaz.yml
#
# Ansible plays for provisioning, deploying, and removing Open Arizona
# service nodes.
#
# Sample usage:
#
# (To provision Open Arizona service nodes:)
# $ ansible-playbook site.yml --ask-vault-pass \
# --inventory _testing \
# --limit openaz \
# --tags provision
#
# (To deploy Open Arizona service configuration to provisioned nodes:)
# $ ansible-playbook site.yml --ask-vault-pass \
# --inventory _testing \
# --limit openaz \
# --tags deploy
#
# (To remove Open Arizona service nodes:)
# $ ansible-playbook site.yml --ask-vault-pass \
# --inventory _testing \
# --limit openaz \
# --tags remove
#
# In the above commands, you could also specify "_staging" or
# "_production" for the inventory file to affect those service
# environments instead of "_testing".
#
- name: "Provisioning Open Arizona service nodes:"
hosts: openaz
remote_user: ansible-admin
become: yes
become_user: root
gather_facts: false
roles:
- _provisioned
tags:
- provision
- name: "Deploying Open Arizona service nodes:"
hosts: openaz
remote_user: ansible-admin
become: yes
become_user: root
gather_facts: true
roles:
- _identified
- _equipped
- _accessible
- _synchronized
- _secured
- splunkf-installed
tags:
- deploy
- name: "Removing Open Arizona service nodes:"
hosts: openaz
remote_user: ansible-admin
become: yes
become_user: root
gather_facts: false
roles:
- _removed
tags:
- remove