# I want edit an openshift router-default deployment with ansible

**URL:** <https://forum.ansible.com/t/i-want-edit-an-openshift-router-default-deployment-with-ansible/34928>\
**Category:** Ansible Project\
**Tags:** kubernetes\
**Created:** [April 7, 2021, 11:46am UTC](https://forum.ansible.com/t/i-want-edit-an-openshift-router-default-deployment-with-ansible/34928 "2021-04-07T11:46:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Macioci](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@John\_Macioci](https://forum.ansible.com/u/John_Macioci)\
**Post date:** [April 7, 2021, 11:46am UTC](https://forum.ansible.com/t/i-want-edit-an-openshift-router-default-deployment-with-ansible/34928/1 "2021-04-07T11:46:36Z")

</div>

I’m attempting to edit a router-default deployment with ansible. I want to change a section in the router-default from:

topologyKey: [kubernetes.io/hostname](http://kubernetes.io/hostname) → topologyKey: [failure-domain.beta.kubernetes.io/zone](http://failure-domain.beta.kubernetes.io/zone)

I can successfully perform an oc edit on deployment.apps/router-default in the openshift-ingress namespace, but I can’t perform the same task with ansible.

When I run the ansible playbook, it says it successfully changed the 2 fields. When I run ansible with -vvv it shows the before and after as being changed. However, when I look at the router deployment using oc edit, the change is not applied.

John
