These docs are for v7.1.0. Click to read the latest docs for v7.6.0.

Ansible Activity Implementation

The com.eurotech.framework.activity.ansible bundle provides the implementation of the APIs defined in com.eurotech.framework.activity.api for the Ansible-based Activity model.

1027

The ActivityServiceImpl provides an implementation for the ActivityServiceImpl. It is responsible to manage the Activity instances during framework functioning as well to restore such tracked Activities at reboot or after power loss.
The property files mapping an Activity are persisted in a persistent location of the filesystem (defaults to /var/lib/eth-persisted-activities/). This location is mapped to a service property but not exposed in UI to the user.

The ActivityImpl class implements the Activity interface and represents an Activity request received, for example, from the cloud platform. Each Activity instance, at every time, is defined by a specific ActivityState.
In the provided implementation for Ansible updates, there are 5 different Activity States available:

NameDescriptionNext State
CreatedStateInitial state of an Activity. It may be used to check on conditions and start the update procedure, when the specified requirements are metWorkingState
CancelledState
WorkingStateIt manages the download of a playbook using the parameters provided in the received Submit request, for example received from the cloud platform. Sends download notification updates.
Launches Ansible on the downloaded resources. Sends notification messages on the execution progress
SuccessfulState
FailedState
SuccessfulStateTerminal state
FailedStateTerminal state
CancelledStateTerminal state