-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (18 loc) · 797 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (18 loc) · 797 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
ANSIBLE_PLAYBOOK ?= ansible-playbook
INVENTORY_SOURCES ?= /etc/ansible/hosts
PLAYBOOK_ARGS ?=
INVENTORY_ARGS := $(foreach src,$(INVENTORY_SOURCES),-i $(src))
.PHONY: syntax disk flat nested hctl orphaned
syntax:
@for file in disk_reports/*.yaml; do \
$(ANSIBLE_PLAYBOOK) $(INVENTORY_ARGS) $(PLAYBOOK_ARGS) --syntax-check $$file; \
done
flat:
$(ANSIBLE_PLAYBOOK) $(INVENTORY_ARGS) $(PLAYBOOK_ARGS) disk_reports/linux_disk_report.yaml
nested:
$(ANSIBLE_PLAYBOOK) $(INVENTORY_ARGS) $(PLAYBOOK_ARGS) disk_reports/linux_nested_disk_report.yaml
hctl:
$(ANSIBLE_PLAYBOOK) $(INVENTORY_ARGS) $(PLAYBOOK_ARGS) disk_reports/linux_nested_hctl_disk_report.yaml
orphaned:
$(ANSIBLE_PLAYBOOK) $(INVENTORY_ARGS) $(PLAYBOOK_ARGS) disk_reports/linux_orphaned_disk_report.yaml
disk: flat nested hctl