-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (30 loc) · 894 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (30 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
export PATH := $(HOME)/.local/bin:$(PATH)
install-ansible:
command -v pipx &>/dev/null || sudo apt-get install -y pipx
pipx ensurepath
command -v uv &>/dev/null || pipx install uv
uv tool install --upgrade ansible-core \
--with ansible \
--with linode_api4 \
--with passlib \
--with netaddr \
--with jmespath
uv tool install --upgrade ansible-lint
uv tool install --upgrade ansible-navigator
galaxy: install-ansible
ansible-galaxy collection install -r ansible/requirements.yml
diff: galaxy
ANSIBLE_CONFIG=./ansible/ansible.cfg ansible-playbook \
--inventory "localhost," \
--connection local \
--ask-become-pass \
--check \
--diff \
ansible/system-setup.yml
apply: galaxy
ANSIBLE_CONFIG=./ansible/ansible.cfg ansible-playbook \
--inventory "localhost," \
--connection local \
--ask-become-pass \
--diff \
ansible/system-setup.yml