Support Termux in ansible.builtin.package#81547
Conversation
| {'path': '/usr/sbin/sorcery', 'name': 'sorcery'}, | ||
| {'path': '/usr/bin/installp', 'name': 'installp'}, | ||
| {'path': '/QOpenSys/pkgs/bin/yum', 'name': 'yum'}, | ||
| {'path': '/data/data/com.termux/files/usr/bin/apt', 'name': 'apt'}, |
There was a problem hiding this comment.
Do you know if this path is reliable, or depends on the configuration of the Android device?
There was a problem hiding this comment.
I know you can move, or explicitly install apps onto other disks, such as an extra SD card. So would that make the path different, or is this some how a chrooted path inside the app that always exists?
There was a problem hiding this comment.
According to their wiki, https://github.com/termux/termux-packages/wiki/Termux-file-system-layout, it seems to be a stable path. Termux exports a ${PREFIX} variable, but it's not configurable according to this:
The root file system and user home directory are located in a private application data directory which lives on the /data partition. Paths to these directories are exposed as $PREFIX and $HOME respectively.
You cannot move $PREFIX to another location because all programs expect that $PREFIX will not be changed. Additionally, you cannot have binaries, symlinks and other files from $PREFIX on sdcard because that file system does not support unix permissions, symlinks, sockets, etc...
As an aside, thanks for all of the work on Ansible. This tool has changed my life 👍 !
s-hertel
left a comment
There was a problem hiding this comment.
This will need a changelog.
Let me know if I did that changelog wrong. Thanks |
|
@cilki Could you please rebase this branch? Thanks, |
7b79357 to
9e3d7e2
Compare
This enables usage of `ansible.builtin.package` instead of `ansible.builtin.apt` in Termux environments (Android). Tested on Pixel Fold and Pixel 6.
9e3d7e2 to
956c158
Compare
|
@Akasurde rebased. |
SUMMARY
This enables usage of
ansible.builtin.packageinstead ofansible.builtin.aptin Termux environments (Android). Tested on Pixel Fold and Pixel 6.ISSUE TYPE
ADDITIONAL INFORMATION
Example playbook:
Fails because it can't find
apt:Fixed after adding the right path: