--- - name: Local environment hosts: localhost tasks: - name: Ensure system up-to-date become: yes apt: update-cache: yes upgrade: yes - name: Install terminal & shell apt: pkg: - zsh - tmux - name: Install CLI tooling apt: pkg: - shellcheck - gh - name: Install gh CLI extensions (gh-dash) command: gh extension install dlvhdr/gh-dash - name: Install DB-related tooling apt: pkg: - postgresql - postgresql-contrib - name: Add zsh managed block blockinfile: path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zshrc" marker: "# Marc's env managed block - {mark}" block: "{{ lookup('ansible.builtin.file', 'files/shell_extras') }}" - name: Add nvim managed block blockinfile: path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/nvim/init.vim" marker: "\" Marc's env managed block - {mark}" block: "{{ lookup('ansible.builtin.file', 'files/extras.vim') }}" - name: Add starship managed block blockinfile: path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/starship.toml" marker: "# Marc's env managed block - {mark}" block: "{{ lookup('ansible.builtin.file', 'files/starship.toml') }}" - name: Ensure gh-dash config directory exists file: path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/gh-dash" state: directory - name: Ensure gh-dash config exists file: path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/gh-dash/config.yml" state: touch - name: Add gh-dash configuration managed block blockinfile: path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/gh-dash/config.yml" marker: "# Marc's env managed block - {mark}" block: "{{ lookup('ansible.builtin.file', 'files/gh-dash.yml') }}" - name: Configure git shell: | git config --global commit.gpgsign true git config --global fetch.prune true