-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaybook.yml
More file actions
45 lines (36 loc) · 978 Bytes
/
playbook.yml
File metadata and controls
45 lines (36 loc) · 978 Bytes
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
---
- name: Provision infrastructure
hosts: "{{ lookup('pipe', 'hostnamectl hostname') }}, server"
pre_tasks:
- name: Set the combined vars dict elements as facts
loop: "{{ combined_vars | dict2items }}"
ansible.builtin.set_fact:
"{{ item.key }}": "{{ item.value }}"
tags: always
- name: Update the package manager cache
become: true
ansible.builtin.package:
update_cache: true
changed_when: false
tags:
- network
- packages
roles:
- role: network
tags: network
- role: packages
tags: packages
- role: file-sync
tags: file-sync
- role: git-repos
tags: git-repos
- role: config
tags: config
- role: services
tags: services
post_tasks:
- name: Print the package summary
when: packages_summary is defined and packages_summary != ''
ansible.builtin.debug:
var: packages_summary
tags: packages