fix: review archlinux install details
This commit is contained in:
@@ -22,21 +22,27 @@
|
||||
line: "%wheel ALL=(ALL) NOPASSWD: ALL"
|
||||
validate: /usr/sbin/visudo -cf %s
|
||||
|
||||
- name: Clean up stale yay sources dir
|
||||
ansible.builtin.file:
|
||||
path: "{{ yay_src_path }}"
|
||||
state: absent
|
||||
|
||||
- name: Create yay sources dir
|
||||
ansible.builtin.file:
|
||||
path: "{{ yay_src_path }}"
|
||||
state: directory
|
||||
owner: "{{ ansible_user }}"
|
||||
mode: "0755"
|
||||
|
||||
- name: Clone git sources
|
||||
become: false
|
||||
become_user: "{{ ansible_user }}"
|
||||
ansible.builtin.git:
|
||||
repo: "{{ yay_git_repo }}"
|
||||
dest: "{{ yay_src_path }}"
|
||||
|
||||
# note: this only works because SUDOERS password prompt is disabled
|
||||
- name: Build and install
|
||||
become: false
|
||||
become_user: "{{ ansible_user }}"
|
||||
ansible.builtin.command:
|
||||
chdir: "{{ yay_src_path }}"
|
||||
cmd: "makepkg -si -f --noconfirm"
|
||||
|
||||
Reference in New Issue
Block a user