Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d5538da
↗️ Removed Git editor parameter
MayNiklas Nov 16, 2020
8bea849
↗️ README: fixed outdated information
MayNiklas Nov 16, 2020
20d1aea
↗️ README: renamed main.yml -> site.yml
MayNiklas Nov 16, 2020
6cfb608
↗️ install drone
MayNiklas Mar 12, 2021
a2ec9be
Add ansible-yubikey-mac to requirements
MayNiklas Mar 20, 2021
7476c73
Add ansible-yubikey to playbook
MayNiklas Mar 20, 2021
8531d07
set configure_yubikey = true
MayNiklas Mar 20, 2021
d99e17b
Fix name of yubikey role
MayNiklas Mar 20, 2021
4e9a950
Add ansible-shell-mac
MayNiklas Apr 17, 2021
9ca1827
include git_mail
MayNiklas Apr 17, 2021
9263b36
remove applications
MayNiklas Apr 17, 2021
044352b
Sort dependencies alphabetically
MayNiklas Apr 17, 2021
bed2dbd
install vscode
MayNiklas Apr 20, 2021
9e91fbb
install Apple Configurator 2
MayNiklas May 3, 2021
a79d798
Add community.general to requirements
MayNiklas Oct 28, 2021
bd22043
don't configure ssh by default
MayNiklas Oct 28, 2021
21d660d
remove apps
MayNiklas Oct 28, 2021
559c617
install zoom
MayNiklas Oct 28, 2021
daebbde
install youtube-dl
MayNiklas Oct 28, 2021
59e21fb
install raspberry-pi-imager
MayNiklas Oct 29, 2021
2ee7094
install atom
MayNiklas Oct 29, 2021
91ae70b
Install Disk Speed Test & Final Cut Pro
MayNiklas Nov 7, 2021
41951a4
Install Whatsapp via App Store
MayNiklas Nov 7, 2021
01e1e21
install mpv
MayNiklas Dec 3, 2021
3b7a8f4
install element & asciinema
MayNiklas Dec 22, 2021
c9a5393
collections install path
MayNiklas Apr 26, 2022
08c6049
remove unused apps
MayNiklas Apr 26, 2022
5078d38
Add roles as submodule
MayNiklas Apr 26, 2022
c2cfb4c
Update README.md
MayNiklas Apr 26, 2022
cd3f12e
update osx_defaults submodule
MayNiklas May 3, 2022
aaaa67a
update submodule creating homebrew line
MayNiklas May 3, 2022
2877a1a
execute homebrew before yubikey
MayNiklas May 3, 2022
5b45135
update shell submodule - both archs in one block
MayNiklas May 3, 2022
7e0d3d3
Change execution order
MayNiklas May 3, 2022
0856f3f
update shell submodule - create ~/.zshrc
MayNiklas May 3, 2022
c9d449d
update submodule - add promt
MayNiklas May 3, 2022
8dedb2a
update submodule - yubikey in .zshrc
MayNiklas May 3, 2022
fabe9c5
add redhat.ansible to .vscode
MayNiklas May 3, 2022
39d103a
update submodule: osx_defaults
MayNiklas May 3, 2022
a02d8e8
add info about used roles
MayNiklas May 3, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 0 additions & 79 deletions host_vars/localhost.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# ---> Ansible
*.retry
collections
roles

# ---> Vim
Expand Down
21 changes: 21 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[submodule "roles/ansible-git"]
path = roles/ansible-git
url = https://github.com/MayNiklas/ansible-git.git
[submodule "roles/ansible-yubikey"]
path = roles/ansible-yubikey
url = https://github.com/MayNiklas/ansible-yubikey-mac.git
[submodule "roles/ansible-ssh"]
path = roles/ansible-ssh
url = https://github.com/MayNiklas/ansible-ssh.git
[submodule "roles/ansible-osx_defaults"]
path = roles/ansible-osx_defaults
url = https://github.com/MayNiklas/ansible-osx_defaults.git
[submodule "roles/ansible-homebrew"]
path = roles/ansible-homebrew
url = https://github.com/MayNiklas/ansible-homebrew.git
[submodule "roles/ansible-mas"]
path = roles/ansible-mas
url = https://github.com/MayNiklas/ansible-mas.git
[submodule "roles/ansible-shell-mac"]
path = roles/ansible-shell-mac
url = https://github.com/MayNiklas/ansible-shell-mac.git
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"redhat.ansible"
]
}
36 changes: 23 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,34 @@
[![Lines Of Code](https://tokei.rs/b1/github/MayNiklas/ansible-mac?category=code)](https://github.com/XAMPPRocky/tokei)
[![Lines Of Code](https://tokei.rs/b1/github/MayNiklas/ansible-mac?category=files)](https://github.com/XAMPPRocky/tokei)

### Installing brew
### Used roles:
- https://github.com/MayNiklas/ansible-osx_defaults.git
- https://github.com/MayNiklas/ansible-shell-mac.git
- https://github.com/MayNiklas/ansible-git.git
- https://github.com/MayNiklas/ansible-yubikey-mac.git
- https://github.com/MayNiklas/ansible-homebrew.git
- https://github.com/MayNiklas/ansible-ssh.git
- https://github.com/MayNiklas/ansible-mas.git

### how to execute the playbook
```bash
# install brew.sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
```

### Installing Ansible
```bash
# clone repository
git clone --recursive https://github.com/MayNiklas/ansible-mac.git

# install ansible
brew install ansible
```
### Configure the variables to your liking
```
cp default.config.yml config.yml
nano config.yml
```

### Executing playbook
```bash
ansible-playbook main.yml
# Configure the variables to your liking
nano host_vars/localhost.yml

# Install required roles
ansible-galaxy install -r requirements.yml

# execute playbook
ansible-playbook site.yml
```

Preperation:
Expand Down
3 changes: 2 additions & 1 deletion ansible.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[defaults]
nocows = True
roles_path = ./roles:/etc/ansible/roles
roles_path = ./roles:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
collections_paths = ./collections:~/.ansible/collections:/usr/share/ansible/collections
inventory = ./inventory.yml

[privilege_escalation]
Expand Down
68 changes: 68 additions & 0 deletions host_vars/localhost.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---

configure_osx: true

configure_yubikey: true

configure_shell: true

configure_ssh: false
ssh_path: ~/.ssh/id_rsa
ssh_size: 4096
ssh_comment: macbook

configure_git: yes
git_mail: info@niklas-steffen.de
git_name: MayNiklas

configure_brew: true
homebrew_taps:
- homebrew/core
- homebrew/cask
- homebrew/cask-drivers
- drone/drone

homebrew_apps:
- adobe-creative-cloud
- discord
- docker
- element
- firefox
- github
- jetbrains-toolbox
- monitorcontrol
- plex
- signal
- spotify
- sublime-text
- telegram
- vlc
- visual-studio-code
- yubico-authenticator
- zoom

homebrew_packages:
- ansible
- asciinema
- docker-compose
- git
- hugo
- iperf3
- mas
- nmap
- wakeonlan
- wget

configure_mas: true
mas_apps:
- { name: 1Password 7 - Password Manager,id: 1295203466 }
- { name: Apple Configurator 2,id: 1037126344 }
- { name: Blackmagic Disk Speed Test, id: 425264550 }
- { name: Final Cut Pro,id: 424389933 }
- { name: Magnet,id: 1333542190 }
- { name: Microsoft Excel,id: 1482454543 }
- { name: Microsoft Remote Desktop,id: 639968404 }
- { name: Parcel - Delivery Tracking,id: 462058435 }
- { name: Twitter,id: 1451685025 }
- { name: WhatsApp Desktop, id: 1147396723 }
- { name: WireGuard,id: 441258766 }
42 changes: 27 additions & 15 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
- src: 'https://github.com/MayNiklas/ansible-git.git'
name: ansible-git
scm: git
- src: 'https://github.com/MayNiklas/ansible-ssh.git'
name: ansible-ssh
scm: git
- src: 'https://github.com/MayNiklas/ansible-osx_defaults.git'
name: ansible-osx_defaults
scm: git
- src: 'https://github.com/MayNiklas/ansible-homebrew.git'
name: ansible-homebrew
scm: git
- src: 'https://github.com/MayNiklas/ansible-mas.git'
name: ansible-mas
scm: git
---
# roles:
# - src: 'https://github.com/MayNiklas/ansible-git.git'
# name: ansible-git
# scm: git
# - src: 'https://github.com/MayNiklas/ansible-yubikey-mac.git'
# name: ansible-yubikey
# scm: git
# - src: 'https://github.com/MayNiklas/ansible-ssh.git'
# name: ansible-ssh
# scm: git
# - src: 'https://github.com/MayNiklas/ansible-osx_defaults.git'
# name: ansible-osx_defaults
# scm: git
# - src: 'https://github.com/MayNiklas/ansible-homebrew.git'
# name: ansible-homebrew
# scm: git
# - src: 'https://github.com/MayNiklas/ansible-mas.git'
# name: ansible-mas
# scm: git
# - src: 'https://github.com/MayNiklas/ansible-shell-mac.git'
# name: ansible-shell-mac
# scm: git

collections:
- name: community.general
source: https://galaxy.ansible.com
1 change: 1 addition & 0 deletions roles/ansible-git
Submodule ansible-git added at ccf42e
1 change: 1 addition & 0 deletions roles/ansible-homebrew
Submodule ansible-homebrew added at 872c2f
1 change: 1 addition & 0 deletions roles/ansible-mas
Submodule ansible-mas added at d2ea82
1 change: 1 addition & 0 deletions roles/ansible-osx_defaults
Submodule ansible-osx_defaults added at cb975b
1 change: 1 addition & 0 deletions roles/ansible-shell-mac
Submodule ansible-shell-mac added at fddfc1
1 change: 1 addition & 0 deletions roles/ansible-ssh
Submodule ansible-ssh added at 2d1a08
1 change: 1 addition & 0 deletions roles/ansible-yubikey
Submodule ansible-yubikey added at e069a9
8 changes: 6 additions & 2 deletions site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@
roles:
- role: ansible-git
when: configure_git
- role: ansible-homebrew
when: configure_brew
- role: ansible-shell-mac
when: configure_shell
- role: ansible-yubikey
when: configure_yubikey
- role: ansible-ssh
when: configure_ssh
- role: ansible-osx_defaults
when: configure_osx
- role: ansible-homebrew
when: configure_brew
- role: ansible-mas
when: configure_mas