- hosts: localhost become: True gather_facts: True vars: user: f tasks: # Config stuff, some apply once, some more, will probably break when we keep rolling - name: Paralell downloads increase from standard (this will only work once, fix later) ansible.builtin.replace: path: /etc/pacman.conf # regexp: '^#?ParallelDownloads = 5$' regexp: '^#?ParallelDownloads = \d+$' replace: 'ParallelDownloads = 33' - name: Create /etc/NetworkManager/conf.d/20-connectivity.conf with connectivity disabled ansible.builtin.file: path: /etc/NetworkManager/conf.d state: directory mode: '0755' - name: Ensure MAKEFLAGS is set to use all available cores lineinfile: path: /etc/makepkg.conf regexp: '^MAKEFLAGS=' line: 'MAKEFLAGS="-j$(nproc)"' state: present - name: Ensure COMPRESS is set to gzip lineinfile: path: /etc/makepkg.conf regexp: '^COMPRESS=' line: 'COMPRESS="gzip"' state: present - name: Ensure PKGEXT is set to .pkg.tar.gz lineinfile: path: /etc/makepkg.conf regexp: '^PKGEXT=' line: 'PKGEXT=".pkg.tar.gz"' state: present - name: Ensure yay config directory exists file: path: /home/{{ user }}/.config/yay state: directory mode: '0755' owner: "{{ user }}" # Ensure ownership group: "{{ user }}" # Ensure group ownership - name: Ensure yay config file exists copy: dest: /home/{{ user }}/.config/yay/config.json content: | { "sudoloop": true } mode: '0644' owner: "{{ user }}" # Ensure ownership group: "{{ user }}" # Ensure group ownership - name: Update yay config to add sudoloop lineinfile: path: /home/{{ user }}/.config/yay/config.json regexp: '"sudoloop":' line: '"sudoloop": true' state: present owner: "{{ user }}" # Ensure ownership group: "{{ user }}" # Ensure group ownership # FYI # /etc/NetworkManager/conf.d/20-connectivity.conf # overwrites # /usr/lib/NetworkManager/conf.d/20-connectivity.conf # Both is probably maybe being overwritten sometimes by pacman - name: Disable NetworkManager connectivity checks ansible.builtin.copy: dest: /etc/NetworkManager/conf.d/20-connectivity.conf content: | [connectivity] uri=http://ping.archlinux.org/nm-check.txt enabled=false mode: '0644' - name: Clone GitHub Copilot Vim repository ({{ ansible_date_time.iso8601 }}) ansible.builtin.git: repo: https://github.com/github/copilot.vim.git dest: /home/{{ user }}/.config/nvim/pack/github/start/copilot.vim update: true # :Copilot status in vim etc