2021-02-07 02:37:41 +07:00
|
|
|
.POSIX:
|
|
|
|
|
2021-12-01 22:44:10 +07:00
|
|
|
env ?= "prod"
|
|
|
|
|
2021-11-25 18:26:44 +07:00
|
|
|
default: boot cluster
|
2021-02-07 02:37:41 +07:00
|
|
|
|
2021-12-25 14:56:49 +07:00
|
|
|
~/.ssh/id_ed25519:
|
2022-10-12 09:24:15 +07:00
|
|
|
ssh-keygen -t ed25519 -P '' -f "$@"
|
2021-12-25 14:56:49 +07:00
|
|
|
|
|
|
|
boot: ~/.ssh/id_ed25519
|
2021-05-16 13:14:15 +07:00
|
|
|
ansible-playbook \
|
2022-01-02 12:27:21 +07:00
|
|
|
--inventory inventories/${env}.yml \
|
2021-12-01 22:21:28 +07:00
|
|
|
boot.yml
|
2021-03-03 02:11:50 +07:00
|
|
|
|
2021-11-25 18:26:44 +07:00
|
|
|
cluster:
|
|
|
|
ansible-playbook \
|
2022-01-02 12:27:21 +07:00
|
|
|
--inventory inventories/${env}.yml \
|
2021-11-25 18:26:44 +07:00
|
|
|
cluster.yml
|
|
|
|
|
2022-02-25 01:38:53 +07:00
|
|
|
console:
|
|
|
|
ansible-console \
|
|
|
|
--inventory inventories/${env}.yml
|