Skip to content
ansibleformsPublic

About

Installer: install AnsibleForms easily on Docker, Podman, or Kubernetes.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

52 Commits

Folders and files

Repository files navigation

AnsibleForms Installer

CI License Docs

The installer that sets up AnsibleForms on a Linux server in one command, written in Go. It installs or upgrades a controller (the app), a Runner (runs playbooks) or a Builder (builds the RTE images).

curl -fsSL https://ansibleforms.com/install | sh

Features

A full-screen wizard asks one question at a time, with Esc to go back and a review before anything changes.

  • Eleven languages: the app's languages, taken from the server's locale or chosen first
  • Release notes first: breaking changes and deprecations are shown before anything changes
  • Controller, Runner or Builder: the whole application, or a Runner or a Builder that joins it
  • Docker, Podman, Kubernetes or native: Compose, the Helm chart, or systemd services, no container engine
  • Container engine included: installs Docker or Podman when neither is on the server, after asking
  • Linux on amd64 and arm64: as root or as a user; a native install and a new engine need root
  • Safe upgrades: backs up the database first and rolls back if the new version does not respond
  • Finds what is there: takes over an AnsibleForms installed by hand, by Helm or natively
  • Unattended mode: every question has a flag, and --yes answers the rest with their defaults

Roles

The wizard asks early what to install: the whole application, or a part that joins an AnsibleForms installed elsewhere.

Role What it is Runs on
Controller the web interface, its database and its own Runner Docker, Podman, Kubernetes or native
Runner the component that runs the playbooks of a controller elsewhere, outbound or inbound Docker, Podman, Kubernetes or native
Builder the component that builds the RTE images a controller defines and pushes them to a registry Docker, Podman, Kubernetes or native

A Runner or a Builder asks the controller's address and joins by join token or approval; on Kubernetes, a chart mode.

A Builder needs a controller at AnsibleForms 7.9.0 or later, where it is approved under Connections > Builders.

Commands

The install script keeps the binary as ansibleforms-installer, for the upgrades, backups and status later on:

  • Where: /usr/local/bin for root, else ~/.local/bin.
  • With sudo: give its full path, as sudo's secure_path often leaves out /usr/local/bin.

Without a command it installs, and ansibleforms-installer --help lists every flag. Its commands:

Command What it does
install install AnsibleForms, as a controller, a Runner or a Builder (the default)
upgrade upgrade to a newer version, showing its release notes first
status show the installation and its containers or pods
backup back up the database now
release-notes show the release notes of a version
uninstall remove the installation, keeping its data unless asked otherwise
version print the installer's version

Existing installations

Run upgrade or install on a server with an AnsibleForms installed by hand, by Helm or natively: the installer shows what it found, takes it over once you confirm and upgrades it in place, or says why it cannot.

Documentation

The installer's reference lives on ansibleforms.com, with the rest of the AnsibleForms documentation:

Page What it covers
The installer What it installs, the install script and the wizard's steps
Compose on Podman Under Engine: compose through podman-compose, else Podman's socket, else podman-compose installed
A Runner The Runner role: outbound or inbound, its join and its certificate
A Builder The Builder role, on rootless Podman too, and a native Builder with BuildKit
Kubernetes The three roles on Kubernetes, values files of your own and AF_CHART
Commands Every command, and where the installer keeps its state
Flags Every flag, and the question it answers
Unattended Installing with --yes and the flags, with examples for each role
An existing installation What it finds on a server, and when it takes it over
Upgrade The backup, the rollback and the files an upgrade brings up to date
Native install AnsibleForms as systemd services, without containers
Kubernetes with Helm The Helm chart by hand, and its runner and builder modes
Release notes Every AnsibleForms release, with its breaking changes

Contributing

Contributions are welcome. Start with these files:

License

GPL-3.0.

About

Installer: install AnsibleForms easily on Docker, Podman, or Kubernetes.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages