Browse Source

add update

master
zeus 4 years ago
parent
commit
2119238682
  1. 7
      Makefile

7
Makefile

@ -8,26 +8,27 @@ current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
RHOST=
include $(DIR)/Makefile.variable
INV=inventory.yml
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} ; \
ansible-playbook -u ${USER} -i ${DIR}/${INV} ${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} ; \
ansible-playbook -u ${USER} -i ${DIR}/${INV} ${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} ; \
ansible-playbook -u ${USER} -i ${DIR}/${INV} ${DIR}/basic/openjdk/java.yml -f 5 --private-key=${PKEY} ; \
echo "Done" ; \
.PHONY = all env

Loading…
Cancel
Save