Use Ansible from package manager instead of pip

This commit is contained in:
Khue Doan
2021-05-16 13:14:15 +07:00
parent 53bd439431
commit 54f4eb570d
2 changed files with 8 additions and 20 deletions

View File

@ -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

View File

@ -1,4 +0,0 @@
ansible
docker
docker-compose
netaddr