„build-debian-env.sh“ hinzufügen
This commit is contained in:
parent
710513a284
commit
cf386b2716
19
build-debian-env.sh
Normal file
19
build-debian-env.sh
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
# install ansible
|
||||
sudo apt-get -y install python3-pip git
|
||||
sudo pip install ansible
|
||||
|
||||
cd /root
|
||||
rm -rf $(hostname -s)-git
|
||||
mkdir $(hostname -s)-git
|
||||
cd $(hostname -s)-git
|
||||
|
||||
# run ansible playbooks
|
||||
for playbook in \
|
||||
debian.ansible.basics \
|
||||
debian.ansible.autoupdate
|
||||
do
|
||||
git clone https://gitea.ds9.dedyn.io/olli/${playbook}.git
|
||||
sudo ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) ${playbook}/*.yml
|
||||
done
|
Loading…
Reference in New Issue
Block a user