debian.ansible.docker/build-debian-env.sh
2023-06-14 12:26:26 +02:00

15 lines
377 B
Bash

#!/bin/bash -xe
# install ansible
apt-get update
apt-get -y install ansible curl
#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