- name: Generate list of packages for package manager set_fact: packages: "{{ query('template', 'package_manager.j2')[0].split('\n')[:-1]|sort|unique }}" tags: softwarelist - name: Install packages (Arch-based) aur: name: "{{ packages }}" extra_args: "--asdeps --needed" # 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 notify: "software changed" tags: softwarelist 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 # 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