# Problem with "ose-upgrade gears" command

**URL:** <https://forum.ansible.com/t/problem-with-ose-upgrade-gears-command/15404>\
**Category:** Ansible Project\
**Created:** [June 5, 2014, 6:23am UTC](https://forum.ansible.com/t/problem-with-ose-upgrade-gears-command/15404 "2014-06-05T06:23:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_ESCALLE](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@Thomas\_ESCALLE](https://forum.ansible.com/u/Thomas_ESCALLE)\
**Post date:** [June 5, 2014, 6:23am UTC](https://forum.ansible.com/t/problem-with-ose-upgrade-gears-command/15404/1 "2014-06-05T06:23:28Z")

</div>

Hi,

I’m trying to automize the migration of our Openshift Enterprise from 2.0 version to 2.1 version.  
I wrote a playbook and I have a problem with “ose-upgrade gears”.

Here is my ansible plybook for this action :

`

- hosts: broker  
user: root  
serial: 1  
tasks:

- name: “Get status”  
command: ose-upgrade status  
register: status  
changed\_when: False

- name: “Perform the gears Step on Broker Hosts”  
command: ose-upgrade gears  
when: “status.stdout.find(‘Next step is: gears’) != -1”  
`

The ansible command stays blocked and nothing appended. There is no error in log file.

If I stop ansible, the process goes on on the broker host, and the ose-upgrade command succeed.

Does someone has this problem and solve it ?

Best regards.

Tom

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [June 5, 2014, 3:46pm UTC](https://forum.ansible.com/t/problem-with-ose-upgrade-gears-command/15404/2 "2014-06-05T15:46:54Z")

</div>

Is it perhaps prompting for some user input? You might want to see if there’s a flag for the command to make sure it’s working in an unattended mode.
