Skip to content

code-chimp/ansible.ubuntu

Repository files navigation

Ubuntu Base System Playbook

Configure new box to running playbooks

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

Run local

git clone https://github.com/code-chimp/ansible.ubuntu
cd ansible.ubuntu
ansible-playbook --ask-become-pass --ask-vault-pass playbook.yml

Run remote

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

Note(s)

  • 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

Debugging

./build-docker
docker run --rm -it --entrypoint bash scratch-computer
# inside temp image
ansible-playbook --ask-become-pass --ask-vault-pass ./ansible/playbook.yml

About

Playbook for standing up my base *buntu system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published