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

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

.Prerequisites

* A new release of {ProductName}. For more information, see link:{BookUrlBase}{BaseProductVersion}{BookNameUrl}#downloading-messaging[Downloading {ProductName}].

.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.

