-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathidr-hosts.yml
33 lines (26 loc) · 936 Bytes
/
idr-hosts.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
# Tasks setting up the hosts (/etc/hosts, sudoers, local users)
- hosts: >-
{{
idr_hosts_populate_openstack_group |
default((idr_environment | default('idr')) + '-hosts')
}}
# Load hostvars
- hosts: "{{ idr_environment | default('idr') }}-hosts"
roles:
- role: ome.sudoers
- role: ome.local_accounts
- role: ome.hosts_populate
hosts_populate_openstack_groups:
- >-
{{
idr_hosts_populate_openstack_group |
default((idr_environment | default('idr')) + '-hosts')
}}
hosts_populate_regex_alias: "^[^-]+-(.+)"
tags:
# Updating /etc/hosts in Docker leads to 'Device or resource busy' error
# https://docs.docker.com/network/links/#updating-the-etchosts-file
- skip_if_molecule_docker
- role: ome.cli_utils
# This only affects the database hosts, the other hosts end up getting this as a dependency of other roles
- role: ome.selinux_utils