30 lines
931 B
YAML
30 lines
931 B
YAML
---
|
|
- name: Create Termux directory
|
|
ansible.builtin.file:
|
|
state: directory
|
|
path: "{{ ansible_user_dir }}/.termux"
|
|
mode: u=rwx,g=rx,o=rx
|
|
# TODO This is a dotfiles directory.
|
|
# Make it not install unless it's Termux
|
|
|
|
- name: Silence Termux login message
|
|
ansible.builtin.file:
|
|
state: file
|
|
path: "{{ ansible_user_dir }}/.hushlogin"
|
|
mode: u=rw,g=r,o=r
|
|
|
|
# https://github.com/kdrag0n/base16-termux/blob/master/templates/default.mustache
|
|
- name: Download base16 theme for Termux
|
|
ansible.builtin.copy:
|
|
content: "{{ base16_schemes['schemes'][base16_scheme]['termux']['colors']['base16-' + base16_scheme + '.properties'] }}"
|
|
dest: "{{ ansible_env.HOME }}/.termux/colors.properties"
|
|
mode: u=rw,g=r,o=r
|
|
tags:
|
|
- color
|
|
|
|
# TODO
|
|
# Upgrade
|
|
# If root:
|
|
# $ apt install tsu
|
|
# $ echo '/system/bin/mount -o remount,rw /; ln -s /data/data/com.termux/files/usr /usr; /system/bin/mount -o remount,ro /' | tsu
|