Install the basics to bootstrap automation
apt install -y software-properties-common \
&& apt-add-repository -y ppa:ansible/ansible \
&& apt install -y curl git ansible build-essential sudo \
&& usermod -aG sudo tgoshinski
Login as user and should be able to let ansible handle the rest
git clone https://github.com/code-chimp/ansible.ubuntu
cd ansible.ubuntu
ansible-playbook --ask-become-pass --ask-vault-pass playbook.yml
NOTE: --ask-vault-pass
is incorrectly listed as an option for ansible-pull
so need to supply
a password file if attempting a remote pull
echo '<mondo secure password>' > DELETE_ME
ansible-pull -K --vault-pass-file DELETE_ME -U https://github.com/code-chimp/ansible.ubuntu.git
rm DELETE_ME
- Not using
ansible.builtin.apt_repository
because it doesn't support Ubuntu's current key strategy - The docker image is really only used for debugging new tasks
./build-docker
docker run --rm -it --entrypoint bash scratch-computer
# inside temp image
ansible-playbook --ask-become-pass --ask-vault-pass ./ansible/playbook.yml