I think your ansible example could be improved by removing all the names.
- name: Ensure https support for apt is installed
apt: pkg=apt-transport-https state=present
smells a little bit like: // add one to x
x += 1;
Additionally, I would far rather see "apt: pkg=apt-transport-https state=present" in my logs than "Ensure https support for apt is installed"