Ansible setup
Document processes better and clean up the code
docker build -t ansible .
docker run --rm -it ansible bash
ansible-playbook default.yml --ask-vault-pass
ansible-playbook default.yml --ask-vault-pass --ask-become-pass
ansible-galaxy install geerlingguy.docker
ansible-playbook tasks/docker.yml --ask-become-pass
-
Ensure Apple's command line tools are installed (xcode-select --install to launch the installer).
-
Install Ansible:
- Run the following command to add Python 3 to your $PATH: export PATH="$HOME/Library/Python/3.8/bin:/opt/homebrew/bin:$PATH"
- Upgrade Pip: sudo pip3 install --upgrade pip
- Install Ansible: pip3 install ansible
-
Clone or download this repository to your local drive.
-
Run ansible-galaxy install -r requirements.yml inside this directory to install required Ansible roles.
-
Run ansible-playbook mac.yml -i inventory --ask-become-pass inside this directory. Enter your macOS account password when prompted for the 'BECOME' password.