Add separate file for aur task & add rootless docker tasks
This commit is contained in:
parent
4c35875333
commit
cede4ea365
8 changed files with 67 additions and 16 deletions
|
|
@ -9,15 +9,21 @@
|
|||
- name: change aur package directories owner
|
||||
become: true
|
||||
file:
|
||||
path: '{[ aur_build_dir }}/{{ item.name }}'
|
||||
path: '{{ aur_build_dir }}/{{ item.name }}'
|
||||
state: directory
|
||||
owner: sonny
|
||||
group: sonny
|
||||
owner: '{{ ansible_user_id }}'
|
||||
group: '{{ ansible_user_id }}'
|
||||
recurse: true
|
||||
loop: '{{ aur_packages }}'
|
||||
|
||||
- name: build packages
|
||||
command: 'makepkg --syncdeps --rmdeps --clean'
|
||||
args:
|
||||
chdir: '{[ aur_build_dir }}/{{ item.name }}'
|
||||
- name: build & install aur packages
|
||||
include_tasks: 'tasks/aur-package.yml'
|
||||
loop: '{{ aur_packages }}'
|
||||
|
||||
- name: enable docker socket
|
||||
systemd:
|
||||
name: docker.socket
|
||||
state: restarted
|
||||
enabled: true
|
||||
scope: user
|
||||
daemon_reload: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue