Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/andreijiroh-dev/bootstrap-scripts-linux. Shell scripts and Ansible playbooks to setup a fresh Linux
Something went wrong. Try again.
1.9 kB · 63 lines
YAML
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364- name: "Install tools from official repo" hosts: localhost vars_files: - /vars/base.yml tasks: - name: "Update packages and cache" community.general.pacman: update_cache: true upgrade: true - name: "Install tools" community.general.pacman: name: - git - perl-authen-sasl - perl-io-socket-ssl - nano - base-devel - doas - htop - btop - tailscale - go - nodejs - python - python-pip - python-pipenv - name: Create new group for passwordless doas ansible.builtin.group: name: wheel-nopass - name: Setup regular user ansible.builtin.user: name: "{{ username }}" shell: "/usr/bin/bash" groups: #- wheel - wheel-nopass - adm password: "plsResetAfterLogin420" - name: Copy doas config ansible.builtin.copy: src: ../../etc/doas.conf dest: /etc/doas.conf - name: Copy makepkg config ansible.builtin.copy: src: ../../etc/makepkg_amd64.conf dest: /etc/makepkg.conf - name: "Clone yay sources from AUR" ansible.builtin.git: repo: "https://aur.archlinux.org/yay" dest: "/usr/local/share/yay" - name: Fix permissions for regular user access ansible.builtin.script: chdir: "/usr/local/share" cmd: /usr/bin/find yay \( -type d -exec chmod u+rwx,g+rwx,o+rw {} \; -o -type f -exec chmod u+rw,g+rw,o+rw {} \; \) - name: "Install yay" become: true become_method: ansible.builtin.su become_user: "{{ username }}" ansible.builtin.script: chdir: "/usr/local/share/yay" cmd: | /usr/bin/git config --global --add safe.directory /usr/local/share/yay /usr/bin/makepkg -si