This playbook is a fork from geerlingguy playbook. I changed it for matching my needs, which are using mac and Linux.
-
Ensure Apple's command line tools are installed (
xcode-select --install
to launch the installer). -
- 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
- Run the following command to add Python 3 to your $PATH:
-
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 main.yml --ask-vault-pass --ask-become-pass
inside this directory. Enter your macOS account password when prompted for the 'BECOME' password.
Note: If some Homebrew commands fail, you might need to agree to Xcode's license or fix some other Brew issue. Run
brew doctor
to see if this is the case.
- Install Ansible
sudo apt-get update && sudo apt-get install ansible -y
- Create a Terminal profile called 'Dracula'
- Install requirements:
ansible-galaxy install -r requirements.yml
- Run
ansible-playbook main.yml --ask-vault-pass --ask-become-pass
- Install ansible
sudo pacman -S ansible
For more information I would advice going to the original repository.
This project was created by Jeff Geerling (originally inspired by MWGriffin/ansible-playbooks).