Update ansible playbook after image build

Hi,

I have a pipeline which:

Git commit > build image > push to ECR

How can I update a file (ansible playbook) with the new image tag? The file is stored in git (private)

Regards