This commit is contained in:
Hrankin, Aleksandr (contracted)
2026-02-19 11:34:13 +00:00
commit f243f440c3
191 changed files with 6183 additions and 0 deletions

26
makefiles/05_setup_ntp.mk Normal file
View 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