Commit f9eccc9a authored by Nick Busey's avatar Nick Busey

Renaming setup role to config for clarity

parent 7b933fe3
Pipeline #44680393 passed with stages
in 48 seconds
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Deploy HomelabOS # Deploy HomelabOS
deploy: logo deploy: logo
@ansible-playbook --extra-vars="@config.yml" -i inventory homelabos.yml @ansible-playbook --extra-vars="@config.yml" -i inventory playbook.homelabos.yml
logo: logo:
@cat homelaboslogo.txt @cat homelaboslogo.txt
...@@ -12,7 +12,7 @@ config: logo ...@@ -12,7 +12,7 @@ config: logo
# If config.yml does not exist, populate it with a 'blank' # If config.yml does not exist, populate it with a 'blank'
# yml file so the first attempt at parsing it succeeds # yml file so the first attempt at parsing it succeeds
@[ -f config.yml ] || cp config.yml.blank config.yml @[ -f config.yml ] || cp config.yml.blank config.yml
@ansible-playbook --extra-vars="@config.yml" -i setup_inventory setup.yml @ansible-playbook --extra-vars="@config.yml" -i config_inventory playbook.config.yml
@echo "========== Configuration completed! Now edit config.yml to turn on the services you want, then run 'make' ==========" @echo "========== Configuration completed! Now edit config.yml to turn on the services you want, then run 'make' =========="
# Reset all local settings # Reset all local settings
...@@ -22,7 +22,7 @@ config_reset: logo ...@@ -22,7 +22,7 @@ config_reset: logo
# Update just HomelabOS Services (skipping slower initial setup steps) # Update just HomelabOS Services (skipping slower initial setup steps)
update: logo update: logo
@ansible-playbook --extra-vars="@config.yml" -i inventory -t deploy homelabos.yml @ansible-playbook --extra-vars="@config.yml" -i inventory -t deploy playbook.homelabos.yml
@echo "========== Update completed! ==========" @echo "========== Update completed! =========="
# Build the HomelabOs Documentation - Requires mkdocs with the Material Theme # Build the HomelabOs Documentation - Requires mkdocs with the Material Theme
...@@ -41,7 +41,7 @@ develop: logo ...@@ -41,7 +41,7 @@ develop: logo
# Execute against a test server # Execute against a test server
test: logo test: logo
ansible-playbook -i test_hosts homelabos.yml ansible-playbook -i test_hosts playbook.homelabos.yml
# Run linting scripts # Run linting scripts
lint: logo lint: logo
......
...@@ -12,7 +12,7 @@ Vagrant.configure(2) do |config| ...@@ -12,7 +12,7 @@ Vagrant.configure(2) do |config|
config.vm.network "forwarded_port", id: "traefik-dashboard", guest: 8181, host: 2282, auto_correct: true config.vm.network "forwarded_port", id: "traefik-dashboard", guest: 8181, host: 2282, auto_correct: true
config.vm.provision "ansible" do |ansible| config.vm.provision "ansible" do |ansible|
ansible.playbook = "homelabos.yml" ansible.playbook = "playbook.homelabos.yml"
ansible.groups = { ansible.groups = {
"homelabos" => ["default"], "homelabos" => ["default"],
"vagrant" => ["default"], "vagrant" => ["default"],
......
...@@ -22,5 +22,5 @@ ...@@ -22,5 +22,5 @@
private: "False" private: "False"
roles: roles:
- homelabos_setup - homelabos_config
... ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment