diff --git a/res/ansible/main.yml b/res/ansible/main.yml index d282337..65ca9f4 100644 --- a/res/ansible/main.yml +++ b/res/ansible/main.yml @@ -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 @@ -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" @@ -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 @@ -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 @@ -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.