Files
private-ai-platform/makefiles/05_setup_ntp.mk
Hrankin, Aleksandr (contracted) f243f440c3 init
2026-02-19 11:34:13 +00:00

27 lines
739 B
Makefile

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