-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinfra-alb.yml
50 lines (43 loc) · 2.05 KB
/
infra-alb.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
---
# FILE: infra-alb.yml
# LICENSE: Public Domain
# To run this playbook alone, use:
# ansible-playbook -i hosts.yml infra-alb.yml
# To do some quick checks, use
# ansible cross_platform_test_2 -i hosts.yml -m raw -a "/opt/alb/bin/alb-cli-issues"
# ansible cross_platform_test_2 --user=root -i hosts.yml -m raw -a "/opt/alb/bin/alb-cli-issues"
# To force ignore cached facts, use
# ansible-playbook -i hosts.yml infra-alb.yml --extra-vars "alb_forceredeploy=yes"
# To run only one subcomponent and skipping facts, use the --tags=. For HAproxy:
# ansible-playbook -i hosts.yml infra-alb.yml --tags="alb-haproxy" --extra-vars "alb_forceredeploy=yes"
# To run jump only for the status (may require minimal boostraped node), use:
# ansible-playbook -i hosts.yml infra-alb.yml --tags="alb-status"
# To just run the boostrap part
# ansible-playbook infra-alb.yml --tags="alb-bootstrap" -i apd.etica.ai,
# To delete deployed apps and sysapps (for later rebuild from scrath)
# ansible all -i hosts.yml -m shell -a "sudo rm -f /opt/alb/sysapps/*"
# ansible all -i hosts.yml -m shell -a "sudo rm -f /opt/alb/apps/*"
# To delete cached facts
# ansible all -i hosts.yml -m shell -a "sudo rm -f /etc/ansible/facts.d/*"
# FreeBSD things
# ansible rocha_anortosito_freebsd12 -i hosts.yml -m shell -u root -a "rm -f /etc/ansible/facts.d/alb_openresty.fact"
- name: "ansible-linux-ha-cluster: Playbook to manange the cluster underline infrastructure (not the apps)"
# hosts: rocha_anortosito_centos8
hosts: cross_platform_test_2
# hosts: ap_delta
# hosts: ap_echo
# hosts: ap_foxtrot
remote_user: root
gather_facts: true
debugger: on_failed
vars:
# On this ap-alb-cluster-demo, we will use as example a single YAML file
# containing all variables at /hosts.yml
#
# Note that ansible allows other types of inventories
roles:
- ap-application-load-balancer
# Debuguer
# https://docs.ansible.com/ansible/latest/user_guide/playbooks_debugger.html#using-the-debugger-keyword
# p result._result
# p task.args