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= RHOST=
include $(DIR)/Makefile.variable include $(DIR)/Makefile.variable
INV=inventory.yml
update: update:
@echo "Update packages " ; \ @echo "Update packages " ; \
echo '[service]'> ${DIR}/inventory.yml ; \ echo '[service]'> ${DIR}/inventory.yml ; \
echo "${RSERVER}" >> ${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" ; \ echo "Done" ; \
install-basic: install-basic:
@echo "base install packages " ; \ @echo "base install packages " ; \
echo '[service]'> ${DIR}/inventory.yml ; \ echo '[service]'> ${DIR}/inventory.yml ; \
echo "${RSERVER}" >> ${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" ; \ echo "Done" ; \
install-openjdk: install-openjdk:
@echo "install packages openjdk " ; \ @echo "install packages openjdk " ; \
echo '[service]'> ${DIR}/inventory.yml ; \ echo '[service]'> ${DIR}/inventory.yml ; \
echo "${RSERVER}" >> ${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" ; \ echo "Done" ; \
.PHONY = all env .PHONY = all env

Loading…
Cancel
Save