mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-08 05:34:43 +02:00
feat: initial commit — Ansible roles storage-01/gpu-01 opérationnels
This commit is contained in:
commit
b3fce8af5d
70 changed files with 2688 additions and 0 deletions
35
Makefile
Normal file
35
Makefile
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
VENV := .venv
|
||||
ANSIBLE := $(VENV)/bin/ansible
|
||||
PLAYBOOK := $(VENV)/bin/ansible-playbook
|
||||
GALAXY := $(VENV)/bin/ansible-galaxy
|
||||
INV := ansible/inventory.yml
|
||||
|
||||
.PHONY: install ping check apply apply-storage apply-gpu vault-init
|
||||
|
||||
install:
|
||||
$(VENV)/bin/pip install -q -r requirements.txt
|
||||
$(GALAXY) collection install -r ansible/requirements.yml
|
||||
|
||||
ping:
|
||||
cd ansible && ../$(ANSIBLE) all -m ping
|
||||
|
||||
check:
|
||||
cd ansible && ../$(PLAYBOOK) playbooks/site.yml --check
|
||||
|
||||
apply:
|
||||
cd ansible && ../$(PLAYBOOK) playbooks/site.yml
|
||||
|
||||
apply-storage:
|
||||
cd ansible && ../$(PLAYBOOK) playbooks/storage-01.yml
|
||||
|
||||
apply-gpu:
|
||||
cd ansible && ../$(PLAYBOOK) playbooks/gpu-01.yml
|
||||
|
||||
vault-encrypt:
|
||||
cd ansible && ../$(VENV)/bin/ansible-vault encrypt group_vars/all/vault.yml
|
||||
|
||||
vault-edit:
|
||||
cd ansible && ../$(VENV)/bin/ansible-vault edit group_vars/all/vault.yml
|
||||
|
||||
vault-view:
|
||||
cd ansible && ../$(VENV)/bin/ansible-vault view group_vars/all/vault.yml
|
||||
Loading…
Add table
Add a link
Reference in a new issue