init
This commit is contained in:
26
makefiles/05_setup_ntp.mk
Normal file
26
makefiles/05_setup_ntp.mk
Normal file
@@ -0,0 +1,26 @@
|
||||
SHELL := /bin/bash
|
||||
.ONESHELL:
|
||||
.SHELLFLAGS := -eu -o pipefail -c
|
||||
|
||||
MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
ANSIBLE_DIR := $(abspath $(MAKEFILE_DIR)/../ansible)
|
||||
|
||||
.PHONY: all \
|
||||
setup_edge_ntp_node setup_core_ntp_node setup_client_ntp_node
|
||||
|
||||
all: setup_client_ntp_node
|
||||
|
||||
setup_edge_ntp_node:
|
||||
cd "$(ANSIBLE_DIR)"
|
||||
ansible-playbook playbooks/ntp/chrony/00_setup_edge_ntp_node.yml -i inventory.ini
|
||||
|
||||
setup_core_ntp_node: setup_edge_ntp_node
|
||||
cd "$(ANSIBLE_DIR)"
|
||||
ansible-playbook playbooks/ntp/chrony/01_setup_core_ntp_node.yml -i inventory.ini
|
||||
|
||||
setup_client_ntp_node: setup_core_ntp_node
|
||||
cd "$(ANSIBLE_DIR)"
|
||||
ansible-playbook playbooks/ntp/chrony/02_setup_client_ntp_node.yml -i inventory.ini
|
||||
|
||||
# make -f 05_setup_ntp.mk
|
||||
|
||||
Reference in New Issue
Block a user