2021-02-07 02:37:41 +07:00
|
|
|
.POSIX:
|
|
|
|
|
2021-03-03 02:11:50 +07:00
|
|
|
default: init provision
|
2021-02-07 02:37:41 +07:00
|
|
|
|
|
|
|
init:
|
|
|
|
python3 -m venv .venv \
|
|
|
|
&& . .venv/bin/activate \
|
|
|
|
&& pip3 install --upgrade pip \
|
|
|
|
&& pip3 install -r requirements.txt
|
|
|
|
|
2021-03-03 02:11:50 +07:00
|
|
|
reset:
|
2021-02-07 02:37:41 +07:00
|
|
|
. .venv/bin/activate \
|
2021-03-03 21:51:19 +07:00
|
|
|
&& ansible-playbook --ask-become-pass --inventory hosts.ini main.yml
|
2021-03-03 02:11:50 +07:00
|
|
|
|
|
|
|
provision:
|
|
|
|
. .venv/bin/activate \
|
2021-03-03 21:51:19 +07:00
|
|
|
&& ansible-playbook --inventory hosts.ini main.yml --tags provision
|