Ansible roles to configure Linux and MacOS.
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.

43 lines
1.0 KiB

HOMEBREW_CASK_OPTS = ""
ANSIBLE = ansible-playbook --connection=local --ask-become-pass --inventory localhost, --limit localhost
help: ## Display this help.
@awk 'BEGIN { \
FS = ":.*##"; \
printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n" \
} \
/^[a-zA-Z_-]+:.*?##/ { \
printf " \033[36m%-12s\033[0m %s\n", $$1, $$2 \
} \
END { \
print \
}' \
$(MAKEFILE_LIST)
all: doc_silent ## Apply all roles.
$(ANSIBLE) playbook.yml
readme: doc
doc: ## Generate README.md.
scripts/doc.sh | tee README.md
doc_silent:
scripts/doc.sh > README.md
hosts: ## Update /etc/hosts files.
$(ANSIBLE) -t hosts playbook.yml
fonts: ## Install fonts.
$(ANSIBLE) -t fonts playbook.yml
gentoo: hosts ## Configure Calculate Linux.
$(ANSIBLE) -t gentoo playbook.yml
macos: hosts ## Configure MacOS.
HOMEBREW_CASK_OPTS=$(HOMEBREW_CASK_OPTS) $(ANSIBLE) -t macos playbook.yml
requirements: ## Install requirements.
ansible-galaxy install -r requirements.yml
pip3 install --user -r requirements.txt