AWS' Linux 2 has a facility "Amazon Linux Extras" which provides additional repos for assorted things (nginx, php, mariadb, etc. etc.).
I'm surprised that I can't find an Ansible module(s) for this feature. I found an repo in github for this, but it's empty.
I can work around this by hand crafting yum_repository module tasks. That demands reverse engineering what AWS's CLI command (aka amazon-linux-extras install ...) is doing. Or I could run that command directly, but that of course will trigger a change every time I run the playbook.
Any suggestions?