mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-22 05:41:45 +07:00
Use Ansible from package manager instead of pip
This commit is contained in:
@ -1,22 +1,14 @@
|
||||
.POSIX:
|
||||
|
||||
default: init run
|
||||
|
||||
init:
|
||||
python3 -m venv .venv \
|
||||
&& . .venv/bin/activate \
|
||||
&& pip3 install --upgrade pip \
|
||||
&& pip3 install -r requirements.txt
|
||||
default: run
|
||||
|
||||
run:
|
||||
. .venv/bin/activate \
|
||||
&& ansible-playbook \
|
||||
--ask-become-pass \
|
||||
--inventory hosts.ini \
|
||||
main.yml
|
||||
ansible-playbook \
|
||||
--ask-become-pass \
|
||||
--inventory hosts.ini \
|
||||
main.yml
|
||||
|
||||
shutdown:
|
||||
. .venv/bin/activate \
|
||||
&& ansible-playbook \
|
||||
--inventory hosts.ini \
|
||||
shutdown.yml
|
||||
ansible-playbook \
|
||||
--inventory hosts.ini \
|
||||
shutdown.yml
|
||||
|
@ -1,4 +0,0 @@
|
||||
ansible
|
||||
docker
|
||||
docker-compose
|
||||
netaddr
|
Reference in New Issue
Block a user