Mycobacteria (the bacteria genus that TB (human, cow etc. versions) is a part of) is somewhat host specific as far as actual disease manifestation. However, they can be present in a wide variety of organisms, just won't usually cause clinically apparent infection. There are few records of it jumping between a human to a reptile/amphibian etc. in a clinically relevant way. They are overall opportunistic pathogens though and will survive in various species, but may not form active infections in animals they are not specific to. However, there are known mycobacterial species that can infect reptiles and specifically chameleons as you state above.
I'm curious why you are asking? Most TB (or indeed other mycobacterial infections) infections enter a latency period in immunocompetent hosts wherein they are basically walled off by the body, making transmission unlikely. Is someone sick with active TB around chameleons?