-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathplaybook-bootstrap.yaml
38 lines (34 loc) · 1.14 KB
/
playbook-bootstrap.yaml
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
---
# TODO: now that this is sorta the "initialize everything" playbook it should probably be renamed
- name: Bootstrap for Ansible
hosts: all
gather_facts: false
roles:
- role: usegalaxy_org.bootstrap
- name: Bootstrap additional
hosts: all
pre_tasks:
- name: Group by OS Family
ansible.builtin.group_by:
key: "group_by_{{ ansible_os_family | lower }}"
roles:
- role: galaxyproject.general.virtual
when: "'virtual_hosts' in group_names"
- role: galaxyproject.general.locale
- role: galaxyproject.general.login_defs
- role: galaxyproject.general.packages
- role: galaxyproject.general.users
- role: galaxyproject.general.paths
# NOTE: if this ends up being problematic, you could pass a `copy_inheritance_chain` var in other playbooks that
# need to do a late copy that sets the inheritance chain keys to `late_templates` and `late_files`
- role: galaxyproject.general.copy
- name: Install telegraf
hosts: telegraf_agents
roles:
- role: dj-wasabi.telegraf
tags: telegraf
- name: Install postfix
hosts: postfix_clients
roles:
- role: galaxyproject.postfix
tags: postfix