debian.ansible.docker/build-debian-env.sh

14 lines
360 B
Bash

#!/bin/bash -xe
# install ansible
apt-get -y install python3-pip
pip install ansible
cd /root
rm -rf $(hostname -s)-git
mkdir $(hostname -s)-git
cd $(hostname -s)-git
curl https://gitea.ds9.dedyn.io/olli/debian.ansible.basics/raw/branch/main/basics.yml >basics.yml
ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) basics.yml