Assuming you have followed Install Ansible then is as simple as (from the playbooks folder) running:
ansible-playbook -K -i hosts vscode.yml
This will Visual Studio Code from official channel.
I've pretty much implemented these using Ansible. Its mostly educational: