Initial commit
This commit is contained in:
parent
195b9600bb
commit
4c35875333
4 changed files with 46 additions and 0 deletions
|
|
@ -21,5 +21,6 @@
|
||||||
- import_tasks: 'tasks/main.yml'
|
- import_tasks: 'tasks/main.yml'
|
||||||
- import_tasks: 'tasks/dotfiles.yml'
|
- import_tasks: 'tasks/dotfiles.yml'
|
||||||
- import_tasks: 'tasks/neovim.yml'
|
- import_tasks: 'tasks/neovim.yml'
|
||||||
|
- import_tasks: 'tasks/aur.yml'
|
||||||
vars_files:
|
vars_files:
|
||||||
- 'vars.yml'
|
- 'vars.yml'
|
||||||
|
|
|
||||||
23
tasks/aur.yml
Normal file
23
tasks/aur.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
- name: clone aur packages
|
||||||
|
become: true
|
||||||
|
git:
|
||||||
|
repo: '{{ item.url }}'
|
||||||
|
dest: '{{ aur_build_dir }}/{{ item.name }}'
|
||||||
|
update: true
|
||||||
|
loop: '{{ aur_packages }}'
|
||||||
|
|
||||||
|
- name: change aur package directories owner
|
||||||
|
become: true
|
||||||
|
file:
|
||||||
|
path: '{[ aur_build_dir }}/{{ item.name }}'
|
||||||
|
state: directory
|
||||||
|
owner: sonny
|
||||||
|
group: sonny
|
||||||
|
recurse: true
|
||||||
|
loop: '{{ aur_packages }}'
|
||||||
|
|
||||||
|
- name: build packages
|
||||||
|
command: 'makepkg --syncdeps --rmdeps --clean'
|
||||||
|
args:
|
||||||
|
chdir: '{[ aur_build_dir }}/{{ item.name }}'
|
||||||
|
loop: '{{ aur_packages }}'
|
||||||
|
|
@ -11,6 +11,15 @@
|
||||||
update: true
|
update: true
|
||||||
version: master
|
version: master
|
||||||
|
|
||||||
|
- name: remove old docker packages
|
||||||
|
become: true
|
||||||
|
package:
|
||||||
|
name: '{{ item }}'
|
||||||
|
state: absent
|
||||||
|
loop:
|
||||||
|
- docker
|
||||||
|
- docker-compose
|
||||||
|
|
||||||
- name: copy konsole configuration files
|
- name: copy konsole configuration files
|
||||||
template:
|
template:
|
||||||
src: '{{ item.src }}'
|
src: '{{ item.src }}'
|
||||||
|
|
|
||||||
13
vars.yml
13
vars.yml
|
|
@ -2,6 +2,7 @@ ansible_connection: local
|
||||||
ansible_python_interpreter: '/usr/bin/env python'
|
ansible_python_interpreter: '/usr/bin/env python'
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
- base-devel
|
||||||
- python
|
- python
|
||||||
- poetry
|
- poetry
|
||||||
- git
|
- git
|
||||||
|
|
@ -12,6 +13,18 @@ packages:
|
||||||
- docker-compose
|
- docker-compose
|
||||||
- ttf-ibm-plex
|
- ttf-ibm-plex
|
||||||
|
|
||||||
|
aur_packages:
|
||||||
|
- {
|
||||||
|
url: 'https://aur.archlinux.org/rootlesskit.git',
|
||||||
|
name: 'rootlesskit'
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
url: 'https://aur.archlinux.org/docker-rootless-extras-bin.git',
|
||||||
|
name: 'docker-rootless'
|
||||||
|
}
|
||||||
|
|
||||||
|
aur_build_dir: '/usr/local/src'
|
||||||
|
|
||||||
xdg_config_dir: '{{ ansible_env.HOME }}/.config'
|
xdg_config_dir: '{{ ansible_env.HOME }}/.config'
|
||||||
xdg_data_dir: '{{ ansible_env.HOME }}/.local/share'
|
xdg_data_dir: '{{ ansible_env.HOME }}/.local/share'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue