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

Add APFS and plutil #30

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
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
96 changes: 92 additions & 4 deletions res/ansible/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

## oh-my-zsh
#########################################
- name: Install Oh My Zsh
- name: oh-my-zsh - install oh my zsh
shell: sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
args:
executable: /bin/bash
Expand All @@ -80,7 +80,7 @@
tags:
- install-ohmyzsh

- name: Install zsh-autosuggestions plugin
- name: oh-my-zsh - install zsh-autosuggestions plugin
git:
repo: https://github.com/zsh-users/zsh-autosuggestions
dest: "/home/vagrant/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
Expand All @@ -89,7 +89,7 @@
tags:
- install-ohmyzsh

- name: Enable zsh-autosuggestions plugin
- name: oh-my-zsh - enable zsh-autosuggestions plugin
lineinfile:
path: "/home/vagrant/.zshrc"
backrefs: yes
Expand All @@ -100,13 +100,22 @@
tags:
- install-ohmyzsh

- name: Set zsh as default shell
- name: oh-my-zsh - set zsh as default shell
user:
name: "vagrant"
shell: /bin/zsh
tags:
- install-ohmyzsh

- name: oh-my-zsh - add LC_ALL environment
ansible.builtin.lineinfile:
path: '/home/vagrant/.zshrc'
line: 'export LC_ALL=C.UTF-8'
state: present
become_user: vagrant
tags:
- install-ohmyzsh

## Burp community
#########################################
- name: Burp - Download
Expand Down Expand Up @@ -473,6 +482,85 @@
become_user: vagrant
tags: install-golang

## APFS fuse
#########################################
- name: APFS fuse - requirements
ansible.builtin.apt:
name:
- fuse
- libfuse3-dev
- bzip2
- libbz2-dev
- cmake
- git
- libattr1-dev
- zlib1g-dev
state: present
update_cache: yes
tags: install-apfsfuse

- name: APFS fuse - cloning
shell: |
cd /tmp/ && \
rm -rf ./apfs-fuse && \
git clone https://github.com/sgan81/apfs-fuse.git && \
cd apfs-fuse && \
git submodule init && \
git submodule update
args:
executable: /usr/bin/zsh
become_user: vagrant
tags: install-apfsfuse

- name: APFS fuse - building
shell: |
cd /tmp/apfs-fuse && \
mkdir build && \
cd build && \
cmake .. && \
make
args:
executable: /usr/bin/zsh
become_user: vagrant
tags: install-apfsfuse

- name: APFS fuse - copy binary
ansible.builtin.copy:
src: /tmp/apfs-fuse/build/apfs-fuse
dest: /usr/local/bin/apfs-fuse
owner: root
group: root
mode: '0755'
tags: install-apfsfuse

- name: APFS fuse - fusermount symlink fix
ansible.builtin.file:
src: /bin/fusermount
dest: /bin/fusermount3
owner: root
group: root
state: link
tags: install-apfsfuse

## plutil
#########################################
- name: plutil - install
ansible.builtin.apt:
name:
- libplist-utils # psutils
state: present
update_cache: yes
tags: install-plutil

- name: plutil - symlink
ansible.builtin.file:
src: /usr/bin/plistutil
dest: /usr/bin/plutil
owner: root
group: root
state: link
tags: install-plutil

## ProtonVPN
#########################################
# This is to not get prompted for root when using the cli.
Expand Down