fix: review archlinux install details
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
ansible.builtin.meta: end_play
|
||||
when: ansible_facts['os_family'] != 'Archlinux'
|
||||
|
||||
- name: Set hostname
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ inventory_hostname }}"
|
||||
|
||||
- name: Archlinux base setup
|
||||
ansible.builtin.include_tasks: "{{ item }}"
|
||||
loop:
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
ansible.builtin.set_fact:
|
||||
paru_url: "{{ item.browser_download_url }}"
|
||||
loop: "{{ paru_release.json.assets }}"
|
||||
when: "'os_arch.tar.zst' in item.name"
|
||||
when: "(os_arch + '.tar.zst') in item.name"
|
||||
|
||||
- name: Download
|
||||
ansible.builtin.get_url:
|
||||
|
||||
@@ -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