You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

3 years ago
all: env install-basic
# current full path
DIR:=$(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
# current full relative
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
RHOST=
include $(DIR)/Makefile.variable
3 years ago
INV=inventory.yml
3 years ago
3 years ago
update:
@echo "Update packages " ; \
echo '[service]'> ${DIR}/inventory.yml ; \
echo "${RSERVER}" >> ${DIR}/inventory.yml ; \
3 years ago
ansible-playbook -u ${USER} -i ${DIR}/${INV} ${DIR}/basic/ls/update.yml -f 5 --private-key=${PKEY} ; \
3 years ago
echo "Done" ; \
3 years ago
install-basic:
@echo "base install packages " ; \
echo '[service]'> ${DIR}/inventory.yml ; \
echo "${RSERVER}" >> ${DIR}/inventory.yml ; \
3 years ago
ansible-playbook -u ${USER} -i ${DIR}/${INV} ${DIR}/basic/ls/basic.yml -f 5 --private-key=${PKEY} ; \
3 years ago
echo "Done" ; \
3 years ago
install-openjdk:
@echo "install packages openjdk " ; \
echo '[service]'> ${DIR}/inventory.yml ; \
echo "${RSERVER}" >> ${DIR}/inventory.yml ; \
3 years ago
ansible-playbook -u ${USER} -i ${DIR}/${INV} ${DIR}/basic/openjdk/java.yml -f 5 --private-key=${PKEY} ; \
3 years ago
echo "Done" ; \
3 years ago
.PHONY = all env