best way to set ansible constants when using executing ansible playbook from python script

Working on LXC post-provisioning setup where ansible is used to setup a LXC after initial creation.

Wondering if this is the best way to set ansible constants. In this case the ANSIBLE_HOST_CHECKING variable.