Add Termux to Ansible (untested)
This commit is contained in:
parent
4e8681fad0
commit
fb5a885e3c
4 changed files with 49 additions and 64 deletions
36
config/automatrop/roles/termux/tasks/main.yml
Normal file
36
config/automatrop/roles/termux/tasks/main.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
- name: Create Termux directory
|
||||
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
|
||||
file:
|
||||
state: file
|
||||
path: "{{ ansible_user_dir }}/.hushlogin"
|
||||
mode: "u=rw,g=r,o=r"
|
||||
|
||||
# Build a single color scheme and template and assign it to a variable
|
||||
- base16_builder:
|
||||
scheme: "{{ base16_scheme }}"
|
||||
template: # This requires https://github.com/mnussbaum/base16-builder-ansible/pull/6
|
||||
- termux
|
||||
register: base16_schemes
|
||||
tags:
|
||||
- color
|
||||
|
||||
- name: Download base16 theme for Termux
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue