diff --git a/ansible/group_vars/all/ipa b/ansible/group_vars/all/ipa
index 77bae9f9bfe7e20c03ac28b22972e95563ced1db..1ed548e2a8d2dbca7c7f18bb3e9e3973268e178c 100644
--- a/ansible/group_vars/all/ipa
+++ b/ansible/group_vars/all/ipa
@@ -16,8 +16,8 @@ ipa_build_source_version: "{{ openstack_branch }}"
 # URL of IPA builder source repository.
 ipa_builder_source_url: "https://opendev.org/openstack/ironic-python-agent-builder"
 
-# Version of IPA builder source repository. Default is master.
-ipa_builder_source_version: master
+# Version of IPA builder source repository. Default is {{ openstack_branch }}.
+ipa_builder_source_version: "{{ openstack_branch }}"
 
 # List of default Diskimage Builder (DIB) elements to use when building IPA
 # images. Default is ["centos", "enable-serial-console",
@@ -45,8 +45,8 @@ ipa_build_dib_env_default:
   # TODO(mgoddard): Use {{ os_release }} here when we use os_distribution
   # above.
   DIB_RELEASE: "8-stream"
-  DIB_REPOLOCATION_ironic_agent: "{{ ipa_build_source_url }}"
-  DIB_REPOREF_ironic_agent: "{{ ipa_build_source_version }}"
+  DIB_REPOLOCATION_ironic_python_agent: "{{ ipa_build_source_url }}"
+  DIB_REPOREF_ironic_python_agent: "{{ ipa_build_source_version }}"
 
 # Dictionary of additional environment variables to provide to Diskimage
 # Builder (DIB) during IPA image build.
diff --git a/etc/kayobe/ipa.yml b/etc/kayobe/ipa.yml
index e0f2094f8566e482f4fbfb8c2d873600b684db6c..519ca2a59d221e4942340b4f66246a74bfbc05e4 100644
--- a/etc/kayobe/ipa.yml
+++ b/etc/kayobe/ipa.yml
@@ -16,7 +16,7 @@
 # URL of IPA builder source repository.
 #ipa_builder_source_url:
 
-# Version of IPA builder source repository. Default is master.
+# Version of IPA builder source repository. Default is {{ openstack_branch }}.
 #ipa_builder_source_version:
 
 # List of default Diskimage Builder (DIB) elements to use when building IPA
diff --git a/releasenotes/notes/ipa-branch-b29c377c531013a8.yaml b/releasenotes/notes/ipa-branch-b29c377c531013a8.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..b7a34e17af961ee5b62284f6a0e3c82e09756422
--- /dev/null
+++ b/releasenotes/notes/ipa-branch-b29c377c531013a8.yaml
@@ -0,0 +1,6 @@
+---
+fixes:
+  - |
+    Fixes an issue with IPA image builds which used the ``master``
+    branch of ``ironic-python-agent``, even on stable releases
+    of Kayobe, or when explicitly setting ``ipa_build_source_version``.