From 04314cb75585d31ab6606ace6e8de04bb12bab35 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Tue, 14 Jun 2016 15:05:48 -0500 Subject: [PATCH] Fixes #14: Set user as a CLI flag instead of hardcoding in playbook. --- README.md | 6 +++--- main.yml | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cc6e70f..3bc85d6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Mac Development Ansible Playbook -This playbook installs and configures most of the software I use on my Mac for web and software development. Some things in OS X are difficult to automate (notably, the Mac App Store and certain tools from Apple), so I still have some manual installation steps, but at least it's all documented here. +This playbook installs and configures most of the software I use on my Mac for web and software development. Some things in macOS are difficult to automate (notably, the Mac App Store and certain tools from Apple), so I still have some manual installation steps, but at least it's all documented here. This is a work in progress, and is mostly a means for me to document my current Mac's setup. I'll be adding settings and packages to this set of playbooks over time. @@ -16,7 +16,7 @@ This is a work in progress, and is mostly a means for me to document my current 2. Ensure Apple's command line tools are installed (`xcode-select --install` to launch the installer). 3. Clone this repository to your local drive. 4. Run the command `$ ansible-galaxy install -r requirements.txt` inside this directory to install required Ansible roles. - 5. Run `ansible-playbook main.yml -i inventory --ask-sudo-pass` from the same directory as this README file. + 5. Run `ansible-playbook main.yml -i inventory -u [username] --ask-sudo-pass` from the same directory as this README file (substitute `[username]` for your macOS account username. ## Included Applications / Configuration @@ -70,7 +70,7 @@ Packages (installed with Homebrew): - wget - brew-cask -My [dotfiles](https://github.com/geerlingguy/dotfiles) are also installed into the current user's home directory, including the `.osx` dotfile for configuring many aspects of Mac OS X for better performance and ease of use. +My [dotfiles](https://github.com/geerlingguy/dotfiles) are also installed into the current user's home directory, including the `.osx` dotfile for configuring many aspects of macOS for better performance and ease of use. Finally, there are a few other preferences and settings added on for various apps and services. diff --git a/main.yml b/main.yml index a5290bb..a3e33be 100644 --- a/main.yml +++ b/main.yml @@ -1,6 +1,5 @@ --- - hosts: localhost - user: jgeerling connection: local vars_files: