// Module included in the following assemblies:
//
// assembly-upgrading-enmasse.adoc

[id='upgrading-enmasse-using-ansible-{context}']
= Upgrading {ProductName} on {PlatformName} using Ansible

.Prerequisites

* A new release of {ProductName}. For more information, see xref:downloading-okd[].

.Procedure

. Log in as a service operator:
+
[subs="attributes",options="nowrap"]
----
oc login -u system:admin
----

. Run the Ansible playbook from the new release:
+
[options="nowrap",subs="+quotes,attributes"]
----
ansible-playbook -i _inventory-file_ ansible/playbooks/openshift/deploy_all.yml
----

. Monitor pods while they are restarted:
+
[subs="attributes",options="nowrap"]
----
oc get pods -w
----
+
The pods restart and become active within several minutes.

