-
Notifications
You must be signed in to change notification settings - Fork 13
/
site.yml
38 lines (35 loc) · 1.01 KB
/
site.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
---
#
# The contents of this file are Copyright (c) 2019. HAProxy Technologies. All Rights Reserved.
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE', which is part of this source code package.
#
# Playbook is used to configure HAPEE LBs and Web nodes
- name: require 2.6+ minimum Ansible version due to EC2 EIP facter
hosts: all
gather_facts: false
pre_tasks:
- name: check Ansible version
assert:
that: "ansible_version.full is version('2.6', '>=')"
msg: "This playbook requires at least 2.6 Ansible: https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#running-from-source"
- name: configure HAPEE LB nodes
hosts: tag_Name_hapee_lb_node
become: true
roles:
- secondary-ip
- ec2facts
- hapee-lb
- heartbeat
tags:
- lb
- name: configure Web backend nodes
hosts: tag_Name_hapee_web_node
become: true
vars:
ansible_python_interpreter: /usr/bin/python3
roles:
- nodejs
tags:
- backend