You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-9Lines changed: 17 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
This playbook installs and configures most of the software I use on my Mac for web and software development. Some things in macOS are slightly difficult to automate, so I still have some manual installation steps, but at least it's all documented here.
8
8
9
-
This is a work in progress, and is mostly a means for me to document my current Mac's setup. I'll be evolving this set of playbooks over time.
9
+
This is a work in progress, and is mostly a means for me to document my current Mac's setup. I'll be evolving this playbook over time.
10
10
11
11
*See also*:
12
12
@@ -21,10 +21,25 @@ This is a work in progress, and is mostly a means for me to document my current
4. Run `$ ansible-galaxy install -r requirements.yml` inside this directory to install required Ansible roles.
24
-
5. Run `ansible-playbook main.yml -i inventory -K` inside this directory. Enter your account password when prompted.
24
+
5. Run `ansible-playbook main.yml -i inventory --ask-become-pass` inside this directory. Enter your account password when prompted.
25
25
26
26
> 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.
27
27
28
+
### Use with a remote Mac
29
+
30
+
You can use this playbook to manage other Macs as well; the playbook doesn't even need to be run from a Mac at all! If you want to manage a remote Mac, either another Mac on your network, or a hosted Mac like the ones from [MacStadium](https://www.macstadium.com), you just need to make sure you can connect to it with SSH:
31
+
32
+
1. (On the Mac you want to connect to:) Go to System Preferences > Sharing.
33
+
2. Enable 'Remote Login'.
34
+
35
+
Then edit the `inventory` file in this repository and change the line that starts with `127.0.0.1` to:
36
+
37
+
```
38
+
[ip address or hostname of mac] ansible_user=[mac ssh username]
39
+
```
40
+
41
+
If you need to supply an SSH password (if you don't use SSH keys), make sure to pass the `--ask-pass` parameter to the `ansible-playbook` command.
42
+
28
43
### Running a specific set of tagged tasks
29
44
30
45
You can filter which part of the provisioning process to run by specifying a set of tags using `ansible-playbook`'s `--tags` flag. The tags available are `dotfiles`, `homebrew`, `mas`, `extra-packages` and `osx`.
@@ -133,13 +148,6 @@ It's my hope that I can get the rest of these things wrapped up into Ansible pla
133
148
6. Set mouse tracking rate.
134
149
7. Configure extra Mail and/or Calendar accounts (e.g. Google, Exchange, etc.).
135
150
136
-
### Applications/packages to be added:
137
-
138
-
These are mostly direct download links, some are more difficult to install because of custom installers or other nonstandard install quirks:
0 commit comments