Make first-time setup instructions slightly more succint. And correct.

This commit is contained in:
Jeff Geerling 2021-05-31 11:04:31 -05:00
parent bc7364fac4
commit 2422114776

View file

@ -11,18 +11,13 @@ This playbook installs and configures most of the software I use on my Mac for w
1. Ensure Apple's command line tools are installed (`xcode-select --install` to launch the installer). 1. Ensure Apple's command line tools are installed (`xcode-select --install` to launch the installer).
2. [Install Ansible](https://docs.ansible.com/ansible/latest/installation_guide/index.html): 2. [Install Ansible](https://docs.ansible.com/ansible/latest/installation_guide/index.html):
1. Add the following to your `~/.zshrc` file (create one if you don't have one): 1. Run the following command to add Python 3 to your $PATH: `export PATH="$HOME/Library/Python/3.8/bin:/opt/homebrew/bin:$PATH"`
2. Install Ansible: `pip3 install ansible`
3. Install the command line tools when prompted (this may take a few minutes).
``` 3. Clone or download this repository to your local drive.
export PATH="$HOME/Library/Python/3.8/bin:/opt/homebrew/bin:$PATH"
```
2. Source the new profile: `source ~/.zshrc`
3. Install Ansible: `pip3 install ansible`
3. Clone this repository to your local drive.
4. Run `$ ansible-galaxy install -r requirements.yml` inside this directory to install required Ansible roles. 4. Run `$ ansible-galaxy install -r requirements.yml` inside this directory to install required Ansible roles.
5. Run `ansible-playbook main.yml --ask-become-pass` inside this directory. Enter your account password when prompted. 5. Run `ansible-playbook main.yml --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. > 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.