mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
69 lines
1.9 KiB
YAML
69 lines
1.9 KiB
YAML
---
|
|
- name: Install universal base packages
|
|
pacman: name={{ item }} state=present
|
|
with_items: "{{ base_packages }}"
|
|
|
|
- name: Create AUR directory
|
|
file: path=/home/{{ user.name }}/{{ aur.dir }}
|
|
state=directory
|
|
owner={{ user.name }}
|
|
group={{ user.group }}
|
|
tags:
|
|
- aur
|
|
|
|
- name: Download cower
|
|
get_url: url=https://aur.archlinux.org/cgit/aur.git/snapshot/cower.tar.gz
|
|
dest=/home/{{ user.name }}/{{ aur.dir }}
|
|
owner={{ user.name }}
|
|
group={{ user.group }}
|
|
tags:
|
|
- aur
|
|
|
|
- name: Extract cower
|
|
unarchive: src=/home/{{ user.name }}/{{ aur.dir }}/cower.tar.gz
|
|
dest=/home/{{ user.name }}/{{ aur.dir }}
|
|
copy=no
|
|
owner={{ user.name }}
|
|
group={{ user.group }}
|
|
creates=/home/{{ user.name }}/{{ aur.dir }}/cower
|
|
tags:
|
|
- aur
|
|
|
|
- name: Build and install cower
|
|
command: "{{ aur.makepkg }} --skippgpcheck chdir=/home/{{ user.name }}/{{ aur.dir }}/cower"
|
|
tags:
|
|
- aur
|
|
become: yes
|
|
become_user: "{{ user.name }}"
|
|
|
|
- name: Download AUR helper
|
|
command: cower -dq {{ aur.helper }}
|
|
chdir=/home/{{ user.name }}/{{ aur.dir }}
|
|
creates=/home/{{ user.name }}/{{ aur.dir }}/{{ aur.helper }}
|
|
tags:
|
|
- aur
|
|
become: yes
|
|
become_user: "{{ user.name }}"
|
|
|
|
- name: Build and install AUR helper
|
|
command: "{{ aur.makepkg }} chdir=/home/{{ user.name }}/{{ aur.dir }}/{{ aur.helper }}"
|
|
tags:
|
|
- aur
|
|
become: yes
|
|
become_user: "{{ user.name }}"
|
|
|
|
- name: Download pmount
|
|
command: cower -dq pmount
|
|
chdir=/home/{{ user.name }}/{{ aur.dir }}
|
|
creates=/home/{{ user.name }}/{{ aur.dir }}/pmount
|
|
tags:
|
|
- aur
|
|
become: yes
|
|
become_user: "{{ user.name }}"
|
|
|
|
- name: Build and install pmount
|
|
command: "{{ aur.makepkg }} chdir=/home/{{ user.name }}/{{ aur.dir }}/pmount"
|
|
tags:
|
|
- aur
|
|
become: yes
|
|
become_user: "{{ user.name }}"
|