-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup
36 lines (32 loc) · 799 Bytes
/
setup
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
36
#!/bin/bash
if test ! "$(which python)"; then
echo "Please install python first"
echo "# pacman -S python"
exit 1
fi
if test ! "$(which yay)"; then
echo "Please install yay first"
cat <<-EOF
# git clone https://aur.archlinux.org/yay.git
# cd yay
# makepkg -si
EOF
exit 1
fi
if test ! "$(which ansible)"; then
echo "Please install ansible first"
echo "# pacman -S ansible"
exit 1
fi
if test ! -f /usr/share/ansible/plugins/modules/yay; then
echo "Please install ansible-yay first"
cat <<-EOF
# curl -fLo /usr/share/ansible/plugins/modules/yay --create-dirs \
https://raw.githubusercontent.com/mnussbaum/ansible-yay/master/yay
# chmod -R 755 /usr/share/ansible/plugins
EOF
exit 1
fi
python --version
ansible --version
ansible-playbook -K main.yml