-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 793 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 793 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
ANSIBLE_DEBUG=1
DISTRO ?= rhel8
prepare:
ansible-inventory --graph
ansible-galaxy install -p roles -f -r roles/requirements.yml
ansible-galaxy collection install -r collections/requirements.yml
ansible-playbook --syntax-check vagrant-playbook.yml
ansible-lint vagrant-playbook.yml
lint:
vagrant validate
packer validate ${DISTRO}.pkr.hcl
clean: lint
@vagrant destroy -f
@ssh-keygen -R 192.168.56.11
@ssh-keygen -R 192.168.56.12
@ssh-keygen -R 192.168.56.13
@vagrant box remove rhel/efi || /usr/bin/true
@rm -rf output-${DISTRO} .vagrant
output-${DISTRO}/${DISTRO}.box:
packer build ${DISTRO}.pkr.hcl
box: output-${DISTRO}/${DISTRO}.box
vagrant box add --force --name rhel/efi output-${DISTRO}/${DISTRO}.box
image: output-${DISTRO}/${DISTRO}.box
all: clean box
vagrant up