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 update: @echo "Update packages " ; \ echo '[service]'> ${DIR}/inventory.yml ; \ echo "${RSERVER}" >> ${DIR}/inventory.yml ; \ ansible-playbook -u ${USER} -i ${DIR}/inventory.yml ${DIR}/basic/ls/update.yml -f 5 --private-key=${PKEY} ; \ echo "Done" ; \ install-basic: @echo "base install packages " ; \ echo '[service]'> ${DIR}/inventory.yml ; \ echo "${RSERVER}" >> ${DIR}/inventory.yml ; \ ansible-playbook -u ${USER} -i ${DIR}/inventory.yml ${DIR}/basic/ls/basic.yml -f 5 --private-key=${PKEY} ; \ echo "Done" ; \ install-openjdk: @echo "install packages openjdk " ; \ echo '[service]'> ${DIR}/inventory.yml ; \ echo "${RSERVER}" >> ${DIR}/inventory.yml ; \ ansible-playbook -u ${USER} -i ${DIR}/inventory.yml ${DIR}/basic/openjdk/java.yml -f 5 --private-key=${PKEY} ; \ echo "Done" ; \ .PHONY = all env