As an ansible neophyte, I'm looking through the 'ansible facts' trying to figure out how to positively identify an Armbian system, with the goal of contributing a patch to the k3s project to improve support for Armbian.
Toward the end of the k3s-ansible playbook, they try to write some kernel options to a file in /boot. According to the comments, they've identified by Armbian machine as Ubuntu. At any rate, Armbian seems to want these flags in /boot/armbianEnv.txt, and the file ansible wants to modify doesn't exist so the update aborts:
fatal: [t4]: FAILED! => {"changed": false, "msg": "Destination /boot/firmware/cmdline.txt does not exist !", "rc": 257}
Looking at the ansible facts for the kernel (the motd says, "Welcome to Armbian Focal with Linux 5.4.45-sunxi64"), I don't see any entries that just come right out and say "Armbian". I'm not sure if it's common to look for subtle cues, or if this means that Armbian should be changing some metadata to announce itself? Or alternatively, why does Armbian use a different filename than Ubuntu?
What do you folks think? Any suggestions or pointers?
Thanks!