The installer
Install, upgrade and look after AnsibleForms on a Linux server, in one command
- What it installs
- Run it
- The wizard
- A Runner
- A Builder
- Kubernetes
- Commands
- Flags
- Unattended
- An existing installation
- Upgrade
- A 7.2 Runner
- Versions
For administrators: the quickest way to a working instance, or to a Runner or a Builder for an AnsibleForms installed elsewhere. Since 7.3.0.
What it installs
The installer asks a few questions in a full-screen wizard, shows every answer for review, and only then changes the server. It installs one of three roles, on one of four engines:
| Role | What it is |
|---|---|
| Controller | The complete application: the web interface, its database and its own Runner. Choose this for a first installation |
| Runner | An RTE that runs the playbooks of an AnsibleForms installed elsewhere, such as in another network, a DMZ or another datacenter. It talks to AnsibleForms over a single WebSocket and holds no database credentials |
| Builder | The RTE builder, which builds the RTE images an AnsibleForms elsewhere defines and pushes them to their registry. It talks to AnsibleForms over a single WebSocket too. Directly on the server, BuildKit runs beside it as a root service |
The engines it installs them on:
| Engine | How it runs |
|---|---|
| Docker | The Docker Compose project, on Docker Engine with its compose plugin. The containers restart together with Docker |
| Podman | The same project on Podman, rootless or as root, with podman-compose or Podman’s socket. A systemd unit starts the containers at boot |
| Kubernetes | The Helm chart, on the cluster that kubectl reaches. A controller is served behind an ingress; a Runner and a Builder use the chart’s runner and builder modes |
| Directly on this server | No containers: Node.js, MariaDB and Ansible on the server, and AnsibleForms as systemd services (a Builder: its binary and BuildKit). See Native install |
After the install, the same program upgrades the installation, backs it up, shows its status and removes it. It also takes over an AnsibleForms it did not install, such as one set up by hand from the Docker Compose project (see An existing installation).
Run it
The install script downloads the installer for this server and starts it:
curl -fsSL https://ansibleforms.com/install | sh
The usual variants: as root, to install Docker or Podman, to install directly on the server or under /opt; with a command or flags (see Flags); and an installer of a given release instead of the latest:
curl -fsSL https://ansibleforms.com/install | sudo sh
curl -fsSL https://ansibleforms.com/install | sh -s -- --lang es
curl -fsSL https://ansibleforms.com/install | AF_INSTALLER_VERSION=7.3.0 sh
The script:
- Checks that the server runs Linux on amd64 or arm64, and finds
curlorwgetandsha256sum - Downloads
ansibleforms-installer_linux_<arch>from the latest release of ansibleforms/installer, or of the releaseAF_INSTALLER_VERSIONnames - Checks it against the release’s
checksums.txt, and uses no download whose checksum differs - Keeps it as
ansibleforms-installer, in/usr/local/binfor root and~/.local/binotherwise, for the upgrades and backups later on. Through sudo, run it by its full path: sudo’ssecure_path, as on Red Hat systems, often leaves out/usr/local/bin - Starts it with the flags given, reading the keyboard from the terminal even though the script came through a pipe
Without a terminal, such as in a CI job, the installer runs unattended (see Unattended).
The wizard
The wizard asks one question at a time, with the steps listed at the left. Esc goes back to the step before, with its answer kept:
| Step | What it asks |
|---|---|
| Language | The installer’s language, from this server’s locale by default: Catalan, German, English, Spanish, French, Italian, Japanese, Dutch, Polish, Portuguese or Chinese. Asked first, before the installer says anything about an installation it found |
| Release notes | What’s new in the version it installs, with the breaking changes, removals and deprecations first |
| Role | Controller, Runner or Builder |
| Engine | Docker, Podman, Kubernetes, or directly on this server |
| Folder | The installation folder, and the instance name |
| Join, App, Mode | A Runner or a Builder: see A Runner and A Builder. No mode for a Builder, nor on Kubernetes |
| Network | The port of the web interface, or of the Runner. Not for a Builder, nor on Kubernetes |
| HTTPS | How browsers connect to a controller |
| Admin | The password of the first admin, typed twice |
| Cluster, Ingress, Storage | Kubernetes only: the namespace and release, the ingress (a controller), the storage class |
| Review | Every answer: Install, or Change answers |
Engine. The list shows what this server has. An engine it lacks is offered as Docker (not installed: the installer installs it) or the same for Podman: once you confirm, the installer installs Docker with Docker’s own script (get.docker.com, compose plugin included) or Podman with podman-compose from the distribution’s packages. That needs root. Kubernetes is offered when kubectl and helm are installed and reach a cluster. Directly on this server needs root and a supported Linux, and says why when it is greyed out. A Builder installs this way too, with BuildKit as a root service (see A native Builder).
Compose on Podman. podman compose may pick Docker’s compose plugin, which works only while Podman’s API socket runs. The installer runs compose through podman-compose when it is installed, keeping a PODMAN_COMPOSE_PROVIDER of your own. Otherwise it starts the socket, systemctl --user enable --now podman.socket (as root, systemctl enable --now podman.socket); when that fails, as root, it offers to install podman-compose. When none of it works, it stops before changing anything, and its message names both fixes.
Folder. The defaults:
| Controller | Runner | Builder | |
|---|---|---|---|
| Folder, as root | /opt/ansibleforms | /opt/ansibleforms-runner | /opt/ansibleforms-builder |
| Folder, as another user | ~/ansibleforms | ~/ansibleforms-runner | ~/ansibleforms-builder |
| Instance name, Docker or Podman | af | runner | af-builder |
| Instance name, native | ansibleforms | ansibleforms-runner | ansibleforms-builder |
With Docker or Podman, the folder holds the compose file and its .env with the secrets, and all the data: database, forms, playbooks and logs. It must be empty. The instance name, lowercase letters, digits and -, prefixes the containers (af_app, af_db, af_rte), so several instances can share a server. A Runner’s instance name is also its runner’s name under Connections > Runners (RTE_NAME). A Builder’s is its one container’s name, and its name under Connections > Builders.
Network. A controller’s web interface listens on 443, or the next free port. HTTPS then offers:
| Choice | What it does |
|---|---|
| HTTPS with a self-signed certificate created for this server | A certificate for this server’s names, valid for ten years. Browsers ask you to accept it once |
| HTTPS with my own certificate and key | Your own certificate and key, in PEM format, from your CA or from Let’s Encrypt |
| HTTP, with HTTPS handled by a reverse proxy in front | Plain HTTP on the port, for nginx, Traefik or a load balancer that handles HTTPS |
Admin. The password of the admin user, typed twice so that a typo does not lock you out. Left empty, the installer generates a strong one.
The end. The installer generates the database password and the secrets, starts AnsibleForms and waits until it answers. It then shows the address to open, the user and the password, and the folder. Runners installed for it ask to join, and an admin approves them under Connections > Runners (see A Runner).
A Runner
A Runner is an RTE for an AnsibleForms that runs elsewhere, on version 7.3.0 or later. It holds no database credentials: it signs in with a token of its own, which AnsibleForms keeps in an RTE credential (see Modes). After the folder, the wizard asks three more things:
| Step | What it asks |
|---|---|
| App | The address of the AnsibleForms this Runner works for, the one people open in a browser |
| Mode | Outbound: the Runner connects to AnsibleForms (the default), or Inbound: AnsibleForms connects to the Runner |
| Network | The Runner’s port, 8000 by default. Outbound, only the health checks listen on it, reachable from this server only. Inbound, also this server’s address as AnsibleForms reaches it |
--role runner skips the role question, so this command, run on the Runner’s server, starts with the questions of a Runner:
curl -fsSL https://ansibleforms.com/install | sh -s -- install --role runner
The installer then connects to AnsibleForms. A self-signed certificate, or one from a private CA, asks Trust this certificate?: yes sets APP_TLS_VERIFY=0 on the Runner. It reads the version AnsibleForms runs, refuses one older than 7.3.0, and installs the Runner with that same version, whatever version the installer itself would install.
Choose outbound for a DMZ, NAT, or a zone that allows no incoming connections: only traffic from this server to AnsibleForms, on its port. Choose inbound for networks where the central side opens every connection.
The review shows Registers: asks for approval, or itself, with a join token when --join gave one. At the end the installer shows the Runner’s name, its mode, the app and, inbound, its address, then says that it asked to join AnsibleForms: approve it under Connections > Runners, after checking that the fingerprint shown there is the one it prints:
Fingerprint: abcd-ef12
The fingerprint is the first 8 hexadecimal digits of the SHA-256 of the Runner’s token, RTE_TOKEN, which is kept in the folder’s .env file (rte.env for a native install). See Approving an RTE. With --join, the Runner is approved at once: it registered itself, and shows as connected under Connections > Runners.
An inbound Runner serves its socket over HTTPS. The installer creates a self-signed certificate for the address AnsibleForms reaches it on, valid for ten years, in the folder’s data/certificates, and sets RTE_URL to https://<address>:<port>. The Runner sends the certificate when it asks to join, and AnsibleForms pins it: it dials that Runner only when it presents that same certificate, so no CA is needed. The installer prints the certificate’s fingerprint below the token’s:
Fingerprint: abcd-ef12
Certificate fingerprint: 3f9c-07a1
It is the first 8 hexadecimal digits of the SHA-256 of the certificate’s DER bytes, as xxxx-xxxx. Before you approve the Runner, check that the approval dialog shows the same certificate fingerprint. A Runner registered with --join prints it too.
On Kubernetes, a Runner is the Helm chart’s runner mode, and always outbound: the wizard asks no mode and no network, as nothing reaches it from outside (see Kubernetes).
A Builder
A Builder is the RTE builder for an AnsibleForms that runs elsewhere, on version 7.9.0 or later: it builds the RTE images that AnsibleForms defines and pushes them to their registry. Like a Runner, it dials AnsibleForms over one WebSocket and holds no database credentials; nothing reaches it from outside, so it has no port on the host. The wizard asks two things of its own:
| Step | What it asks |
|---|---|
| Folder | The instance name, af-builder by default (ansibleforms-builder native): its container’s or service’s name, and its name under Connections > Builders |
| App | The address of the AnsibleForms it builds for, the one people open in a browser |
--role builder skips the role question, so this command, run on the Builder’s server, starts with the questions of a Builder:
curl -fsSL https://ansibleforms.com/install | sh -s -- install --role builder
The installer then connects to AnsibleForms as it does for a Runner: Trust this certificate? for a self-signed one sets CONTROLLER_TLS_VERIFY=0 on the Builder, and the Builder is installed with the version AnsibleForms runs. The folder holds docker-compose.yml and its .env (builder.env for a native Builder):
In the .env | What it holds |
|---|---|
CONTROLLER_URL | The app’s address |
RTE_NAME | Its name under Connections > Builders |
RTE_TOKEN | Its own token, generated: AnsibleForms keeps it once the Builder joins |
RTE_JOIN_TOKEN | The join token --join gave, if any |
CONTROLLER_TLS_VERIFY | 0 when you trusted the app’s certificate |
The compose file runs the builder with seccomp and AppArmor unconfined, which its rootless BuildKit needs to make its user namespaces, and a volume of its own, work, for its spool, its builds’ files and BuildKit’s cache. There is no data folder: a Builder holds no data to back up.
Rootless Podman. A rootless container already lives in a user namespace, where BuildKit cannot map its ids again. There, the compose file runs the builder as the container’s root (user: "0:0"), privileged. That root is the server user’s own id, and privileged grants capabilities only in that user’s namespace: the container gets nothing on the host the user does not already have. Docker and Podman as root run it as the image’s own user.
At the end the installer shows the Builder’s name and the app. With --join, it registered itself and shows as connected under Connections > Builders. Without it, it asked to join: approve it there, after checking that the fingerprint shown is the one it prints (see Joining the controller).
On Kubernetes, a Builder is the Helm chart’s builder mode (see Kubernetes). To run the builder by hand instead, see The RTE builder.
A native Builder
As root, Directly on this server (--mode native) installs a Builder without Docker or Podman, in /opt/ansibleforms-builder:
| What | How it runs |
|---|---|
| The builder | Its static binary from the builder’s release at the app’s version, checked against its SHA256SUMS. It runs as the service ansibleforms-builder, under a system user of the same name |
| BuildKit | The release of moby/buildkit the installer pins, v0.35.1, checked against the SHA-256 the installer pins too. It runs as the root service ansibleforms-buildkitd, which the builder’s service requires |
builder.env holds the keys of a Builder’s .env, with BUILDER_WORK_PATH, the folder’s data/, and BUILDKIT_HOST, BuildKit’s socket unix:///run/buildkit/buildkitd.sock, which only the builder’s group may open. The builds’ steps share the server’s network.
Without root, the installer refuses it and says to run it with sudo, or to install the Builder on Docker, Podman or Kubernetes. It needs a builder release with binaries: an older version says so. Upgrade, rollback, uninstall and takeover work as for a native Runner (see Native install), an upgrade moving the builder to the new version and BuildKit to the installer’s pinned one. A server holds one native Builder only, as BuildKit’s service and socket have fixed names.
BuildKit runs as root. It is a root daemon on the server, and it runs every build’s RUN steps there, from the Dockerfiles of the Designer’s runtime environments. Keep the server for builds, and the runtime environments for people you trust with it, or install the Builder on Docker, Podman or Kubernetes, where its BuildKit runs rootless.
Kubernetes
For a controller on Kubernetes, the installer installs the Helm chart on the cluster kubectl reaches:
| Question | Default |
|---|---|
| Namespace | ansibleforms |
| Helm release name | ansibleforms |
| Hostname served by the ingress | None: required, such as ansibleforms.example.com |
| Ingress class | One of the cluster’s, nginx by default |
| Serve it over HTTPS (using the ingress certificate)? | Yes |
| Storage class for the volumes | The cluster default |
The admin password is in the Secret <release>-secrets of that namespace, under the key ADMIN_PASSWORD. The installer keeps the chart values in a file next to its state file, <release>-values.yaml, and applies it again on upgrades. The chart of a release is published shortly after it.
Values of your own. --values <file> adds a values file of your own, such as for an external database, resources or a volume’s size. The installer keeps its path and applies it again on every upgrade, and an upgrade’s own --values takes its place. At the installed version, upgrade --values <file> applies a changed file again, without moving to another version.
Another chart. AF_CHART names the chart to install from instead of the published one: a chart folder or a .tgz, such as a test build or a copy for an air-gapped cluster, or a mirror’s address. Installs and upgrades both use it; Helm ignores the version for a folder or a file:
AF_CHART=./ansibleforms-<version>.tgz ansibleforms-installer upgrade
For a Runner, the installer installs the same chart in its runner mode (runner.enabled): an RTE alone, with no app, no database and no ingress, which dials AnsibleForms (outbound). After the app’s address, the wizard asks:
| Question | Default |
|---|---|
| Namespace | ansibleforms |
| Helm release name | ansibleforms-runner, which is also its runner’s name under Connections > Runners |
| Storage class for the volumes | The cluster default |
The installer makes the Runner’s token and sets the app’s address, the runner’s name and, when you trust the app’s certificate, runner.appTlsVerify: false. With --join, the join token approves the Runner at once; without it, the Runner asks to join, and the installer prints its fingerprint to check before you approve it under Connections > Runners.
For a Builder, the installer installs the chart in its builder mode (builder.enabled): the builder alone, which dials AnsibleForms. It asks the same three questions, with ansibleforms-builder as the release name, which is also its name under Connections > Builders. It makes the Builder’s token (builder.token), sets the app’s address, its name and, when you trust the app’s certificate, builder.appTlsVerify: false, and puts its volume on the storage class chosen. The builder’s pod needs a namespace that admits privileged pods (see Pod Security): the installer creates the namespace when it is missing and labels it pod-security.kubernetes.io/enforce=privileged, audit and warn too. When it may not, it stops and prints the commands a cluster admin runs.
Commands
The installer takes a command, before or after its flags. Without one, it installs:
| Command | What it does |
|---|---|
install | Install AnsibleForms, as a controller (the default), a Runner or a Builder. On a server that has an installation already, its own or one it finds, it offers to upgrade it |
upgrade | Upgrade to a newer version, showing its release notes first (see Upgrade) |
status | Show the installation (its role, engine and version) and its containers, pods or services, and whether it answers. Then it lists any other AnsibleForms it finds on the server |
backup | Back up the database now, into installer-backups in the installation folder (on Kubernetes, backups next to the installer’s state file). A Runner or a Builder holds no data to back up |
release-notes | Show the release notes of a version, --version or this installer’s, breaking changes first |
uninstall | Remove the installation, and with --purge its data |
version | Print the installer’s version |
The installer remembers the installation in /etc/ansibleforms/installer.json for root, or ~/.config/ansibleforms/installer.json for another user, so the commands after install need no flags and find the installation on their own. That folder holds no binary, and only exists once the installer has installed an AnsibleForms or taken one over:
sudo /usr/local/bin/ansibleforms-installer status
sudo /usr/local/bin/ansibleforms-installer backup
sudo /usr/local/bin/ansibleforms-installer upgrade
uninstall asks Also delete its data (database, forms, playbooks, logs)?. To delete it, type the instance’s name (the Helm release on Kubernetes); otherwise it removes the containers, pods or services and keeps the data.
Flags
Each flag answers a question, which the wizard then skips. ansibleforms-installer --help lists them:
| Flag | What it answers |
|---|---|
--lang <code> | The language: ca, de, en, es, fr, it, ja, nl, pl, pt or zh |
--version <version> | The AnsibleForms version to install or upgrade to; this installer’s by default |
--role <role> | controller, runner or builder |
--mode <mode> | compose, kubernetes or native |
--runtime <runtime> | docker or podman (compose) |
--install-runtime | Install Docker or Podman when missing, without asking |
--dir <folder> | The installation folder (compose) |
--name <name> | The instance name, its containers’ prefix (compose, af by default); a Builder’s name under Connections > Builders |
--port <port> | The port on the host: the web interface for a controller, the RTE for a Runner |
--tls <choice> | self, own or off (a compose controller) |
--cert <file>, --key <file> | The certificate and key files, with --tls own |
--admin-password <password> | The first admin’s password; generated by default |
--join <token> | A join token (afj_...), made through the API, which approves the Runner or the Builder at once (unattended; see Join tokens) |
--app-url <address> | The app’s address, such as https://forms.example.com (a Runner or a Builder) |
--runner-mode <mode> | outbound (the RTE dials the app) or inbound (the app dials the RTE) (a Runner) |
--host <address> | This server’s address, which the app dials (an inbound Runner) |
--namespace <namespace> | The Kubernetes namespace, ansibleforms by default |
--release <release> | The Helm release, ansibleforms by default |
--hostname <name> | The ingress hostname (kubernetes) |
--ingress-class <class> | The ingress class (kubernetes) |
--storage-class <class> | The storage class (kubernetes) |
--values <file> | An extra Helm values file (kubernetes) |
--purge | With uninstall: also delete the data |
--source <folder> | A local copy of the ansibleforms/docker repository to install from (air-gapped) |
--bundle <file> | A release bundle, ansibleforms-<version>-linux-<arch>.tar.gz, to install natively from (see Native install) |
--yes | Answer every question with its default (unattended) |
--verbose | Show every command it runs |
Unattended
With --yes, or without a terminal, the installer asks nothing: the flags answer their questions and the defaults answer the rest. It skips the language, the release notes, the admin password (generated, unless --admin-password gives one) and the review, and prints the link to the release notes instead. It installs a missing Docker or Podman only with --install-runtime or --yes, and a Runner or a Builder needs --app-url. Without --join, it asks to join and waits for an admin’s approval; with it, it is approved at once.
A controller on Docker, installing Docker when it is missing:
curl -fsSL https://ansibleforms.com/install | sudo sh -s -- install --yes \
--role controller --runtime docker --install-runtime --tls self --admin-password '<password>'
An inbound Runner on Podman, which the app dials at rte-dmz.example.com:8000:
curl -fsSL https://ansibleforms.com/install | sudo sh -s -- install --yes \
--role runner --runtime podman --install-runtime --app-url https://forms.example.com --join afj_<...> \
--runner-mode inbound --host rte-dmz.example.com --port 8000
A Builder on Docker, approved at once with a join token:
curl -fsSL https://ansibleforms.com/install | sudo sh -s -- install --yes \
--role builder --runtime docker --app-url https://forms.example.com --join afj_<...>
An existing installation
The installer remembers what it installed in installer.json. Without that file, install, upgrade and status first look for an AnsibleForms already on the server, whatever installed it:
| Found | How it is found | Taken over when |
|---|---|---|
| Docker or Podman | Containers of the app or RTE image, grouped by compose project | The folder holds the compose file and .env of the ansibleforms/docker repository: the services mysqldb, app and rte, in the containers <name>_db, <name>_app and <name>_rte |
| A Builder | The RTE builder’s image alone in its compose project | Its folder holds the installer’s Builder files: the one service builder, named as the instance, and a .env with CONTROLLER_URL and RTE_TOKEN |
| A 7.2 Runner | An RTE alone in its compose project, with the app’s DB_* and no RTE_MODE (database mode) | Its compose file is readable. Its upgrade moves it to a socket mode (see A 7.2 Runner) |
| Kubernetes | Helm releases of the ansibleforms chart, and Deployments and StatefulSets of its images | It is a release of the chart: its current values become its values file |
| Native | systemd services that run AnsibleForms with Node.js, or a Builder’s builder and BuildKit | They follow the installer’s layout: releases/, current, app.env and rte.env, or builder.env (see Native install) |
| No engine | The app or an RTE answering on a usual port: 443, 3000, 3001, 8000, 8001, 8010 or 8443 | Never: it runs from source or by hand. The installer only reports it |
Only the app’s and the RTE’s images count: a MySQL container named after AnsibleForms is not an installation. The installer lists what it found, one line each, with the reason and what to do by hand for one it cannot take over: its compose file is not the repository’s, its database is outside its compose project, it runs on Kubernetes without the Helm chart, it is managed by Argo CD (upgrade it there, by changing the chart version of the Application), or its version cannot be read.
For an installation it can take over, install offers three choices:
| Choice | What it does |
|---|---|
| Take over and upgrade | Shows what it will remember, then writes installer.json once you confirm, and continues with the upgrade |
| Install a new AnsibleForms beside it anyway | A second installation, with its own folder, ports and database, after a confirmation of its own |
| Stop | Nothing is changed |
For an installation that already runs the version the installer would install, the first choice is Take over instead: the installer remembers where it is and how it runs, for its backups, status and next upgrades, and nothing is changed now.
upgrade offers the same without the second choice, and stops when nothing can be taken over. Unattended, install stops with a message, and upgrade --yes takes an installation over only when it finds exactly one it can take over. A Kubernetes release’s current values are saved next to installer.json, and the upgrades apply them again with the chart of the new version.
Upgrade
ansibleforms-installer upgrade moves the installation to a newer version of the same major version. It lists the newer versions, latest first (unattended, it takes the latest), and shows the release notes of every version it moves past, with the breaking changes and removals first. When they hold breaking changes, it asks you to confirm that you read them; unattended, only --yes goes on.
The installer backs up the database before anything changes. When the new version does not respond, it offers to roll back: the previous version comes back, and its database is restored from that backup. It does not downgrade, and it does not cross a major version: follow the upgrade guide for that, for example from 6.x to 7.x, with what to do on 6.5 before you upgrade.
On Docker or Podman, a controller’s upgrade also brings its files up to date with the new version of the docker repository:
| File | What the upgrade does |
|---|---|
docker-compose.yml | Replaced by the new version’s, after a copy is saved in installer-backups |
.env | Every existing line is kept, and the keys the new version needs are added, with secrets made as a fresh install makes them. A copy is saved first |
data/seed.yaml | Replaced when it is a seed the docker repository shipped, unchanged. One changed by hand is kept, and the new one is saved beside it |
data/ | The new files the version brings, such as a new playbook, are added. Every file that exists is kept |
A missing database setting (MYSQLDB_USER or a password) cannot be made up for a database that exists, so the upgrade then stops before any change. A rollback puts the compose file, .env and seed back as they were.
A Runner runs the same version as its AnsibleForms: upgrade AnsibleForms first, then its Runners. A Runner’s upgrade rewrites its compose file for the new RTE image and keeps its .env and data as they are. The same goes for a Builder: upgrade AnsibleForms first, then its Builders, whose upgrade rewrites docker-compose.yml for the new image and keeps the .env and the work volume. A native Builder’s upgrade moves the builder to the new version and BuildKit to the version the installer pins, keeping builder.env.
A 7.2 Runner
A Runner of 7.2 runs in database mode, deprecated since 7.3.0: its RTE holds the database settings of AnsibleForms. The installer finds it (see An existing installation), and its upgrade moves it to a socket mode under the same runner:
- It reads the runner’s name (
RTE_NAME) and token (RTE_TOKEN) from the old RTE container. When the RTE did not register itself (RTE_REGISTER=0), you type the name its runner has under Connections > Runners - It asks the app’s address and the mode, outbound by default or inbound, and for inbound the port and this server’s address
- It shows the plan, then backs up the old compose file and
.envtoinstaller-backups - It writes the installer’s Runner layout without the
DB_*settings. It keepsRTE_MAX_JOBS,RTE_DRAIN_SECONDS,PROCESS_MAX_BUFFERandMETRICS_TOKEN, which a socket-mode RTE still reads - It starts the new RTE beside the old one. The new RTE signs in with the runner’s own token, and AnsibleForms moves the runner to the new mode itself, without an approval: its jobs and the forms that name it are unchanged
- Once the new RTE is connected, the old container is stopped and removed
An inbound Runner serves HTTPS with a pinned certificate, as a new one does (see A Runner), and the installer prints its certificate fingerprint. When the old RTE holds the port the new one needs, it is stopped first, so the Runner is offline until the new one connects. An outbound Runner’s new RTE takes a free port on 127.0.0.1 and runs beside the old one without a gap.
When the installer cannot read a token from the old RTE, you choose how the new RTE signs in:
| Choice | What follows |
|---|---|
| Type the runner’s token | The password of the runner’s RTE credential under Connections > Credentials. The runner keeps its name and jobs |
| Join as a new runner with a join token | A join token adds a new runner under another name. Retire the old runner by hand |
When the new RTE does not connect, the installer offers to put the old files back and start the old container again; if AnsibleForms had already moved the runner, set its mode back to database under Connections > Runners. Once the new RTE is connected, there is no going back: the old files stay in installer-backups.
When AnsibleForms knows no runner by that name, the new RTE asks to join instead and waits for an approval. Reject that request under Connections > Runners, then run the upgrade again with the name the runner has there.
Versions
The installer’s version follows the app’s: each AnsibleForms release comes with an installer of the same version, released with it, and that installer installs that version by default. --version installs another one. Every release on the installer’s Releases page has binaries for Linux on amd64 and arm64, with their checksums.