diff --git a/Makefile b/Makefile index 7dcadbc..2e8b784 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ inventory: $(ansible_req): -deps: $(ansible_req) +deps: $(ansible_req) $(venv_source)/dep $(shell mkdir -p $(ansible_roles)) ifeq ($(wildcard $(ansible_req)),) $(error there is not requirements.yml file in $(ansible_data)!) @@ -29,18 +29,18 @@ endif --role-file="$(ansible_req)" .PHONY: check-syntax -check-syntax: ## check-syntax #Check playbook syntax +check-syntax: deps $(venv_cmd) && ansible-playbook -i inventory.ini \ --syntax-check $(ansible_playbook) .PHONY: dry-run -dry-run: ## dry-run #run playbook in check mode +dry-run: deps $(venv_cmd) && ansible-playbook -i inventory.ini \ --check $(ansible_options) $(ansible_playbook) \ -u $(ansible_user) -.PHONY: dry-run -run: ## dry-run #run playbook in check mode +.PHONY: run +run: deps $(venv_cmd) && ansible-playbook -i inventory.ini \ $(ansible_options) $(ansible_playbook) \ -u $(ansible_user) diff --git a/README.md b/README.md new file mode 100644 index 0000000..2eafbbb --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +Desktop configuration playbook +------------------------------ + +This repo contais all needed to install and configure my Windows managers and +associated services. + +## How-to + +Just run `make dry-run` or `make run`