Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jge/feature/m1 #21

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 0 additions & 32 deletions README-SETTINGS.md

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Ansible Playbook

## Enable Festplattenvollzugriff

* Terminal Festplattenvollzugriff

## basic bootstrap

```
Expand Down
4 changes: 2 additions & 2 deletions develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
vars_files:
- vars/develop.yml
tasks:
- include: tasks/base_packages.yml
- include: tasks/develop.yml
- include_tasks: tasks/base_packages.yml
- include_tasks: tasks/develop.yml
2 changes: 1 addition & 1 deletion files/bash/bash_profile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export PATH="$PATH:/usr/local/bin:/opt/homebrew/bin"
HOMEBREW_PREFIX=$(brew --prefix)
if type brew &>/dev/null; then
for COMPLETION in "$HOMEBREW_PREFIX"/etc/bash_completion.d/*
Expand All @@ -9,4 +10,3 @@ if type brew &>/dev/null; then
source "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh"
fi
fi

26 changes: 0 additions & 26 deletions files/ssh/sign-keys

This file was deleted.

40 changes: 0 additions & 40 deletions files/ssh/update-ssh-config

This file was deleted.

10 changes: 3 additions & 7 deletions main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
vars_files:
- vars/main.yml
tasks:
- include: tasks/base_packages.yml
- include: tasks/bash.yml
- include: tasks/memoio.yml
- include: tasks/teamviewer14.yml
- include: tasks/ssh.yml
- include: tasks/dockutil.yml
- include: tasks/timemachine.yml
- include_tasks: tasks/base_packages.yml
- include_tasks: tasks/bash.yml
- include_tasks: tasks/ssh.yml
2 changes: 1 addition & 1 deletion sales.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
vars_files:
- vars/sales.yml
tasks:
- include: tasks/base_packages.yml
- include_tasks: tasks/base_packages.yml
6 changes: 3 additions & 3 deletions tasks/bash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
lineinfile:
path: /etc/shells
state: present
line: "/usr/local/bin/bash"
regexp: "^/usr/local/bin/bash"
line: "/opt/homebrew/bin/bash"
regexp: "^/opt/homebrew/bin/bash"
become: yes
become_method: sudo

- name: "set user shell to new brew bash"
user:
name: "{{ lookup('env', 'USER') }}"
shell: /usr/local/bin/bash
shell: /opt/homebrew/bin/bash
become: yes
become_method: sudo
5 changes: 5 additions & 0 deletions tasks/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@
regexp: "^127.0.0.1 localunixsocket"
become: yes
become_method: sudo

- name: "install dev directory for user"
file:
path: ~/dev
state: directory
27 changes: 0 additions & 27 deletions tasks/dockutil.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tasks/memoio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- name: "install memoio cask"
copy:
src: homebrew/memoio.rb
dest: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/memoio.rb
dest: /opt/homebrew/Library/Taps/homebrew/homebrew-cask/Casks/memoio.rb

- name: "install memoio"
homebrew_cask:
Expand Down
38 changes: 28 additions & 10 deletions tasks/ssh.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
---

- name: "install script to query ssh config"
copy:
src: ssh/update-ssh-config
dest: /usr/local/bin/update-ssh-config
mode: 0755
- name: "install /usr/local/bin"
file:
path: /usr/local/bin
state: directory
become: yes
become_method: sudo

- name: "install bash symlink"
file:
dest: /usr/local/bin/bash
src: /opt/homebrew/bin/bash
state: link
become: yes
become_method: sudo

- name: "install .ssh directory for user"
file:
Expand All @@ -16,8 +25,17 @@
path: ~/.ssh/config.footer
state: touch

- name: "install script to query sign ssh keys via hildeguard"
copy:
src: ssh/sign-keys
dest: /usr/local/bin/sign-keys
mode: 0755
- name: "install .ssh root directory"
file:
path: ~/.ssh
state: directory
become: yes
become_method: sudo

- name: "install default empty file config.footer for root"
file:
path: ~/.ssh/config.footer
state: touch
become: yes
become_method: sudo

7 changes: 0 additions & 7 deletions tasks/teamviewer14.yml

This file was deleted.

6 changes: 0 additions & 6 deletions tasks/timemachine.yml

This file was deleted.

1 change: 1 addition & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ brew_cask_apps:
- cyberduck
- tunnelblick
- visual-studio-code
- libreoffice

brew_apps:
- dockutil
Expand Down