2021-01-10 14:57:06 +01:00
|
|
|
|
2021-06-12 17:15:21 +02:00
|
|
|
- name: Generate list of packages for package manager
|
|
|
|
set_fact:
|
2021-06-13 14:45:20 +02:00
|
|
|
packages: "{{ query('template', 'package_manager.j2')[0].split('\n')[:-1]|sort|unique }}"
|
|
|
|
tags: softwarelist
|
|
|
|
|
2021-06-12 17:15:21 +02:00
|
|
|
- name: Install packages (Arch-based)
|
|
|
|
aur:
|
|
|
|
name: "{{ packages }}"
|
2021-06-13 14:45:20 +02:00
|
|
|
extra_args: "--asdeps --needed"
|
2021-06-12 17:15:21 +02:00
|
|
|
# Nothing is set as installed manually so it can
|
|
|
|
# be removed by dependency check.
|
|
|
|
# Current packages will be kept by the meta package
|
|
|
|
use: yay
|
2021-06-16 22:57:18 +02:00
|
|
|
notify: "software changed"
|
2021-06-12 17:15:21 +02:00
|
|
|
tags: softwarelist
|
2021-12-02 16:55:55 +01:00
|
|
|
when: arch_based
|
|
|
|
|
|
|
|
- name: Check if list of packages changed
|
|
|
|
copy:
|
|
|
|
content: "{% for package in packages %}{{ package }}\n{% endfor %}"
|
|
|
|
dest: "{{ ansible_user_dir }}/.cache/automatrop/package_manager"
|
|
|
|
notify: "software changed"
|
|
|
|
tags: softwarelist
|
2021-06-19 16:52:28 +02:00
|
|
|
|
|
|
|
# translate-shell
|
|
|
|
# $ curl -L git.io/trans > ~/.local/bin/trans
|
|
|
|
# $ chmod +x ~/.local/bin/trans
|
|
|
|
|
|
|
|
# sct
|
|
|
|
# $ TMP=$(mktemp /tmp/XXXXXXXXXX.c)
|
|
|
|
# $ wget https://gist.githubusercontent.com/ajnirp/208c03d3aa7f02c743d2/raw/55bf3eed25739173d8be57b5179ed5542cf40ed6/sct.c -O $TMP
|
|
|
|
# $ cc $TMP --std=c99 -lX11 -lXrandr -o $HOME/.local/bin/sct
|
|
|
|
# $ rm $TMP
|