Ansible playbooks for deploying pgcli-managed PostgreSQL instances, Patroni HA clusters and add-ons on most mainstream Linux distributions. With this repository you can declaratively orchestrate PostgreSQL databases, extensions, and the surrounding database and storage infrastructure.
This repository is the standalone subtree of the ansible/ directory in
mars-base/pgcli. The full documentation
lives at https://pgcli.pages.dev/docs/ansible/.
- Control node: Python 3.11+ and uv
- Managed hosts: most mainstream Linux distributions, reachable over SSH. The
examples connect as
root; any sudo-capable account works, and rootless deployments keep the SSH account separate from the unprivileged deployment account (see Rootless deployment). - The playbooks install pgcli and its podman dependency; no manual setup is needed on a fresh host
Replace myproj, db-01 and the SSH address, then run on the control node:
myproj=xx
git clone --depth 1 https://github.com/mars-base/pgcli-ansible.git ansible-${myproj}
cd ansible-${myproj}
uv sync
cp ansible.cfg.example ansible.cfg
cat > hosts.ini <<'EOF'
[single]
db-01 ansible_host=192.0.2.10 private_ip=192.0.2.10 ansible_user=root ansible_port=22
[single:vars]
ansible_group_priority=20
EOF
cp group_vars/all/main.yml.example group_vars/all/main.yml
cat > group_vars/single/main.yml <<'EOF'
pgcli_config_overrides:
namespace: dev
pgcli_instances:
- name: pg_single
host: db-01
state: started
autostart: true
EOF
uv run ansible-playbook playbooks/ping.yaml --limit single
uv run ansible-playbook playbooks/apply.yaml --limit single
uv run ansible single -m command -a 'pg list'
uv run ansible single -m command -a 'pg exec pg_single -c "SELECT version();"'
Re-running apply.yaml is idempotent.
By default every host runs pgcli and podman as root. To run them as an
unprivileged account, put the host in the [rootless] inventory group and copy
group_vars/rootless/main.yml.example to group_vars/rootless/main.yml:
[rootless]
db-01
# group_vars/rootless/main.yml
pgcli_deploy_rootless: true
pgcli_deploy_user: pgcli
ansible_user in hosts.ini is only the SSH connection account and must have
sudo. pgcli_deploy_user is the account that owns pgcli's state and runs
rootless podman; the two may be different accounts. It is created automatically
when missing, with a nologin shell, locked password, subordinate UID/GID ranges
and systemd lingering. Packages, the podman launcher and host preparation
(uidmap, /etc/containers/policy.json, userns, SELinux) still run through
become as the SSH account.
The SSH account does not have to be root. Any account that can become root
works, including a dedicated operator account:
[all:vars]
ansible_user=ops
ansible_port=22
All plays run with become: true, so a sudo password is required unless the
account has NOPASSWD; pass it once with -K (--ask-become-pass) when
running a playbook. ansible_become_password can also be set in an encrypted
host_vars file, but do not commit it in plaintext.
The deployment account (pgcli above) does not need SSH access or a shell; the
plays switch to it with become_user.
Rootless containers use host networking. Binding ports below
net.ipv4.ip_unprivileged_port_start (1024 by default) would fail, so the play
persists net.ipv4.ip_unprivileged_port_start=0 in
/etc/sysctl.d/99-pgcli-rootless.conf and writes /etc/sudoers.d/pgcli-deploy
granting the deployment account exactly one command:
sysctl -w net.ipv4.ip_unprivileged_port_start=0. It gets no other sudo rights.
When the account already has passwordless sudo (sudo -n true succeeds as that
account), the rule is redundant and the file is skipped.
Run with --limit rootless. Config, image cache, data and backups move under
the account's home (~/.pgcli, ~/.cache/pgcli/images, ~/pg/data,
~/pg/backup); pg stays in /usr/local/bin/pg. Hosts outside [rootless]
keep the rootful layout.
The config, podman storage and containers belong to the deployment account, so
pg must run as that account with its systemd user runtime. The account has a
nologin shell, so open a shell with sh rather than sudo -i:
uid=$(id -u pgcli)
sudo -u pgcli env HOME=/home/pgcli \
XDG_RUNTIME_DIR=/run/user/$uid \
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus \
sh -c 'cd && pg list'
The read-only playbooks resolve this environment automatically and are the easiest way to inspect a rootless deployment from the control node:
uv run ansible-playbook playbooks/resources.yaml -e HOSTS=rootless
uv run ansible-playbook playbooks/ha-status.yaml -l rootless_ha
ANSIBLE_LOG_PATH=/dev/null uv run ansible-playbook playbooks/passwords.yaml -e HOSTS=rootless
For a non-root Patroni deployment, add a [rootless_ha] group and make it a
child of [ha_cluster], then copy
group_vars/rootless_ha/main.yml.example to group_vars/rootless_ha/main.yml.
The child group turns on the unprivileged account and overrides the parent's
namespace, cluster and HAProxy lists with one home-based cluster. Enable the
co-located etcd DCS on the same hosts in [ha_etcd] (entries state: present)
and run uv run ansible-playbook playbooks/apply.yaml --limit rootless_ha.
etcd, the Patroni members, backups and HAProxy all run as the deployment
account.
Run every playbook from the repository root with uv run.
| Playbook | What it does | Modifies hosts |
|---|---|---|
ping.yaml |
Verifies SSH/Ansible connectivity to every selected host | No |
apply.yaml |
Installs pgcli and reconciles instances, extensions, add-ons, host daemons and HA clusters | Yes |
deploy-s3.yaml |
Deploys a standalone minio/silo/rustfs store as a pgBackRest S3 target | Yes |
deploy-http.yaml |
Deploys the pg http file servers and syncs the offline binaries into the served directories |
Yes |
ha-status.yaml |
Shows the live Patroni topology and HAProxy endpoints | No |
resources.yaml |
Shows host resources and, per namespace, instances, add-ons and HA status | No |
nftables.yaml |
Applies the host nftables firewall from group_vars/nftables (Debian and RedHat families) |
Yes |
passwords.yaml |
Shows the stored credentials of instances, HA clusters and add-ons | No |
Checks that the control node can reach the selected hosts over SSH and run
Ansible modules. It changes nothing and is the quickest way to validate a new
inventory. Targets every host in the inventory, or a subset with --limit:
uv run ansible-playbook playbooks/ping.yaml
uv run ansible-playbook playbooks/ping.yaml --limit debian12-01
The main playbook. It performs the actual deployment: installs pgcli and its
images, initializes the host config, then reconciles pgcli_instances,
pgcli_addons and the HA cluster declarations for each selected host. Enable
exactly one scenario group at a time and select it with --limit:
uv run ansible-playbook playbooks/apply.yaml --limit single
uv run ansible-playbook playbooks/apply.yaml --limit instance_addon_mixed
uv run ansible-playbook playbooks/apply.yaml --limit ha_cluster
Tags allow running only part of it: pgcli, instance, addon, daemon,
ha (the validation play is tagged always). On hosts that already have pgcli
installed, skip the install play:
uv run ansible-playbook playbooks/apply.yaml --limit instance_addon_mixed --tags instance,addon
uv run ansible-playbook playbooks/apply.yaml --limit debian12-01 --tags instance
Add-ons are selected by their exact inventory group name — --limit addon_<type>_<single|cluster> — not by a separate type variable:
uv run ansible-playbook playbooks/apply.yaml --limit addon_etcd_single --tags addon
uv run ansible-playbook playbooks/apply.yaml --limit addon_redis_cluster --tags addon
Wildcards and comma-separated limits are rejected by the validation play.
Set state: absent in the corresponding group_vars entry to remove
resources; clean_data: true also deletes the data directory.
Deploys one of the pgcli-managed object stores (minio, silo, rustfs) for the
pgBackRest s3 backup target: it prepares the data drives, writes the TLS
material and starts the store containers. The store type comes from the active
*_s3 inventory group (minio_s3, silo_s3, rustfs_s3); the layout is
derived from the selected node count and pgcli_s3_drives.
uv run ansible-playbook playbooks/deploy-s3.yaml -e pgcli_s3_group=minio_s3
uv run ansible-playbook playbooks/deploy-s3.yaml -e pgcli_s3_nodes=debian12-01
uv run ansible-playbook playbooks/deploy-s3.yaml -e pgcli_s3_nodes=debian12-01,debian12-02,debian12-03,debian12-04
uv run ansible-playbook playbooks/deploy-s3.yaml -e pgcli_s3_type=rustfs
uv run ansible-playbook playbooks/deploy-s3.yaml -e pgcli_s3_force=true
pgcli_s3_nodes defaults to the whole pgcli_s3_group (the [s3] parent
unless overridden). pgcli_s3_type is optional when the group name already
encodes the type. See the *_s3 main.yml.example files for drives, TLS and
endpoint options.
Deploys the pg http file servers declared in pgcli_http_servers on the
[http] inventory group. Binary copying is disabled by default; set
sync_binaries: true on a server to copy the offline binaries (pg,
podman-launcher-linux_amd64) into its served directory. Every pg http start parameter is supported: directory, listen address/port, the three write
modes plus admin_ips and max_upload, TLS (self-signed via tls: true, or
tls_cert/tls_key), and Basic Auth via auth, auth_env or auth_file.
Field documentation lives in group_vars/http/main.yml.example.
When binary copying is enabled, run make build in the repository root first:
the role refreshes images/pg from bin/pg, then copies the configured
binaries. Any other configured binaries must already be under images/.
A file-server host runs no containers, so the install play skips the offline
image check/load (pgcli_load_images: false) and passes --skip-pull to the
installer. Override with -e pgcli_load_images=true -e pgcli_install_skip_pull=false when the host must carry the images as well.
uv run ansible-playbook playbooks/deploy-http.yaml --limit http
uv run ansible-playbook playbooks/deploy-http.yaml -e HOSTS=node-http
uv run ansible-playbook playbooks/deploy-http.yaml --limit http --skip-tags pgcli
Tags: pgcli (install role) and http (reconcile servers). Servers are
matched by name and restarted on any spec change; if the bound port differs
from the declaration (pg http increments a busy port) the play fails. Auth is
compared by username and password: adding/removing accounts and changing a
password (inline, auth_env, or the bcrypt hash in an auth_file) restarts
the server. force: true restarts unconditionally.
Targets the ha_cluster group (or any single member; all members share the
same DCS view) and prints the Patroni topology plus the HAProxy endpoints in
front of it. Read-only; it does not change cluster state:
uv run ansible-playbook playbooks/ha-status.yaml
uv run ansible-playbook playbooks/ha-status.yaml -l ha_cluster
uv run ansible-playbook playbooks/ha-status.yaml -l debian12-02
Reports CPU, load, memory, filesystems, the pgcli version, and per-namespace
instances, add-ons, HA status and pg http file servers. HTTP server URLs on
the wildcard address are rewritten to the host's private_ip (falling back
to ansible_host) so they are usable from another host. Hosts without the
pgcli binary at pgcli_install_path are skipped. Read-only:
uv run ansible-playbook playbooks/resources.yaml
uv run ansible-playbook playbooks/resources.yaml -e HOSTS=debian12-01
uv run ansible-playbook playbooks/resources.yaml -l addon_nodeexporter_single
Prints the admin DSN of every instance (read from pg status -i, with
127.0.0.1/localhost rewritten to the host's private_ip, falling back to
ansible_host), each HA cluster's stored password set (pg ha passwords),
and the add-on credentials (pg addon list --show-password). Read-only; it
only queries the existing state.
The output is plaintext credentials, so the playbook refuses to run unless
Ansible logging is disabled. Pass ANSIBLE_LOG_PATH=/dev/null explicitly:
ANSIBLE_LOG_PATH=/dev/null uv run ansible-playbook playbooks/passwords.yaml
ANSIBLE_LOG_PATH=/dev/null uv run ansible-playbook playbooks/passwords.yaml -e HOSTS=debian12-01
ANSIBLE_LOG_PATH=/dev/null uv run ansible-playbook playbooks/passwords.yaml -e HOSTS=ha_cluster
Do not redirect its stdout to a world-readable file; write any copy to a
0600 file or a password manager.
The base image ships 45 built-in extensions (contrib) that only need
CREATE EXTENSION. pgcli can also build a derived image containing any of the
395 extensions from the Pigsty DEB catalog — pg extension available lists all
440 known names. Extensions are baked into the image layer, so they survive
container rebuilds and restarts.
Common choices: pg_stat_statements, pg_cron, timescaledb, pgvector,
postgis, pgmq, pgcrypto, pg_trgm, postgres_fdw, pg_partman.
Declare extensions per instance in pgcli_instances; the role installs any
missing ones with pg extension install ... --auto-restart:
pgcli_instances:
- name: pg_single
host: db-01
extensions:
- pg_stat_statements
- pgcrypto
- pgvector
The default is [pg_stat_statements]; setting extensions replaces the list
entirely. The same operations are available directly through
pg extension install|list|remove|available. See the
extensions guide and the
built-in catalog.
pgcli manages 42 add-on types — PostgreSQL sidecars, storage systems, observability stacks, messaging systems and supporting services. Most run as managed host-network containers; JuiceFS, ZeroFS and DuckDB are installed as host binaries.
| Category | Add-ons |
|---|---|
| Connection pooling and proxying | pgbouncer, pgdog, predixy, haproxy, nginx, privoxy |
| Observability | prometheus, alertmanager, grafana, nodeexporter, pgexporter, victoriametrics, vmalert, victorialogs, vlagent, vmcluster, vlcluster |
| Object storage | minio, silo, rustfs, garage, seaweedfs |
| Filesystems | beegfs, juicefs, zerofs |
| Databases and analytics | clickhouse, clickhouse-keeper, influxdb, influx2tsdb, documentdb, duckdb |
| Messaging and coordination | etcd, redis, valkey, kafka, rabbitmq, rocketmq |
| Container orchestration | k3s |
| Web and admin | gitea, pgadmin, postgrest |
| Web application firewall | safeline |
Each add-on has an inventory group with a fixed topology: addon_<type>_single
(one host) or addon_<type>_cluster (multi-host; etcd, minio, silo,
rustfs, seaweedfs, redis, valkey, clickhouse, clickhouse-keeper,
kafka, rabbitmq, rocketmq, k3s, vmcluster and vlcluster). Declare entries in
group_vars/addon_<type>_<mode>/main.yml and apply only that group:
A k3s group is the only k3s group and takes any number of hosts (one host
makes a single-node embedded-etcd cluster — the group never deploys the SQLite
standalone form). addon_k3s_roles declares each host's role
explicitly — hosts left out are agents, and group order does not decide the
role — and addon_k3s_cluster_init_server names the one server that
bootstraps embedded etcd with --cluster-init (empty picks the first server;
it need not be the group's first host). Joins retry until the bootstrap
server answers, and a host added to the group joins on the next run. The
k3s_shared role prepares the shared material on the controller: the
generated token is copied to every member, and an optional custom CA (for
example 100 years via addon_k3s_ca_days: 36500; 0 keeps the K3s default,
any custom lifetime must be greater than 10 days) only to the initial server
before its first start. Registry mirrors are
rendered to a registries.yaml that every member mounts. Server certificates
carry the server IPs; a direct L3 network (bare metal) needs nothing more.
List any extra address peers are seen through — the SNAT source for NATed
VM-to-VM traffic — in addon_k3s_extra_tls_sans.
addon_etcd_single_addons:
- type: etcd
state: present
name: etcd1
uv run ansible-playbook playbooks/apply.yaml --limit addon_etcd_single --tags addon
Set state: absent to remove an add-on; add clean_data: true to delete its
data as well. Per-type flags go in the entry's params list (or the group's
addon_<type>_<mode>_params default); each main.yml.example documents the
common ones. Set autoreload: true on a safeline entry to run
pg addon reload safeline --name <name> on every apply: tengine re-resolves
the protected sites' upstream host names (nginx -t plus a graceful reload; the
stack keeps serving). A safeline entry can also declare its protected sites in
sites (domains, ports, one upstream, and optional cert/key PEM paths on
the controller): each apply creates the missing sites and updates the upstream
of existing ones when it changed. A site can also declare its mode
(defense, dryrun or offline) and its protections in
cc (waiting room plus rate-limit rules), protect (one level for all 14
semantic-analysis modules, or back to the global levels) and bot (the
invisible challenge, with where match conditions or all_visitors: true);
they are applied on every run, after the sites and their upstreams are
reconciled. Dropping a site from the list does not delete
it from the console, and certificate renewal stays manual
(pg addon safeline cert update). SafeLine and K3s need rootful podman, so their
add-on groups are always reconciled as root: when the host's deployment identity is rootless
(for example a host that also belongs to an active scenario group), the
add-on group's list still wins over the scenario group's pgcli_addons and
the play prints a notice, runs the add-on commands as root (rootful podman),
and keeps the stack in the deployment account's config (restoring the config's
ownership to that account afterwards). See the
add-on reference
and deploying add-ons with Ansible.
To create a PostgreSQL instance and its add-ons in one run, use the mixed
scenario group: declare both pgcli_instances and pgcli_addons in
group_vars/instance_addon_mixed/main.yml, enable [instance_addon_mixed] in
the inventory, and run apply.yaml --limit instance_addon_mixed. The instance
play runs before the add-on play, so a local pgbouncer can pool an instance
created in the same run. Enable only one scenario group at a time.
The observable scenario turns a group of hosts into a monitored fleet: every
member gets nodeexporter, every host that carries a pgcli instance also gets
pgexporter, and one host runs Prometheus, Alertmanager, Grafana and the
alertmanager-webhook daemon. Instances, add-ons and the daemon are declared
once in group_vars/observable/main.yml, and the scrape targets are derived
from the inventory's private_ip values:
cp group_vars/observable/main.yml.example group_vars/observable/main.yml
# adjust hosts, then put pgexporter_monitor_password in the gitignored
# group_vars/observable/secrets.yaml
uv run ansible-playbook playbooks/apply.yaml --limit observable
The example uses four hosts (node1-node4); place every machine you want
scraped in [observable]. To use a different scenario group name, copy the
group vars to group_vars/<name>/main.yml and update the group referenced by
_observable_node_exporter_targets. After changing alert rules, scrape targets
or add-on parameters, redeploy the add-ons; daemon-only changes use the
daemon tag:
uv run ansible-playbook playbooks/apply.yaml --limit observable --tags addon
uv run ansible-playbook playbooks/apply.yaml --limit observable --tags daemon
Prometheus loads misc/prometheus/postgres.rules.yml (PostgreSQL, node and
Alertmanager health alerts) and forwards firing alerts to the loopback-only
Alertmanager, whose receiver appends one JSON line per alert to the webhook
daemon log. Prometheus, Alertmanager and the webhook bind loopback; Grafana is
the exposed UI on port 3000. Remote write to a VictoriaMetrics add-on is
covered in the guide.
See the observability guide
and group_vars/observable/README.md for the full layout, Grafana import steps
and verification commands.
nftables.yaml installs nftables on Debian-family (Debian, Ubuntu) and
RedHat-family (Fedora, Rocky) hosts and replaces the
ruleset with a default-drop input policy. New connections are accepted only
when they match a rule. The role defaults for nftables_sets and
nftables_rules are empty; the example group_vars allow the trusted set
(normally the first entry in nftables_sets) to the pgcli PostgreSQL SQL,
exporter and Grafana ports. Ports accessed only between managed machines use the
managed_hosts set: the [nftables] host addresses plus any extra IPs. It
covers pgBackRest SSH (42201), etcd client/peer (2379, 2380) and MinIO
API/console (19800, 19801) in the example. Add port-scoped rules for
add-ons or custom instance ports. SSH is
handled separately: only
nftables_ssh_sources may establish host SSH connections, and SSH from every
other source is dropped even when that source is in a set. Loopback,
established/related traffic, DHCP replies and ICMP are always accepted.
On Ubuntu, ufw is disabled when it is active; on Fedora and Rocky, firewalld is
stopped and masked so it cannot program the ruleset in parallel. Both are on by
default and controlled by nftables_disable_ufw and
nftables_disable_firewalld. RedHat-family hosts load
/etc/sysconfig/nftables.conf instead of /etc/nftables.conf, and the role
reloads with nft -f rather than systemctl reload nftables because the
Fedora unit starts its reload with flush ruleset.
Set entries and SSH sources are IPv4 CIDRs or individual addresses (a single
IP implies /32) and live in the gitignored group_vars/nftables/main.yml.
nftables_ssh_sources must contain at least one entry unless
nftables_ssh_allow_all is true, and should include the control node before
the first run. The role refuses to apply an empty list otherwise, so a
misconfiguration cannot lock SSH out by accident. nftables_ssh_allow_all
accepts SSH from any source.
nftables_ssh_ports is a list (default [22]), so a host that listens on
several or non-standard SSH ports can list all of them; override it per host
in host_vars/<host>.yml when only some machines differ.
Add public-cloud or other intranet ranges as extra named sets. The built-in
ssh_sources set comes from nftables_ssh_sources and must not be redefined:
nftables_sets:
- name: trusted
subnet:
- 192.168.0.0/16
- name: managed_hosts
subnet: "{{ (groups['nftables'] | map('extract', hostvars, 'private_ip') | list) + ['192.0.2.1'] }}"
- name: cloud
subnet:
- 203.0.113.0/24
- name: other_dc
subnet:
- 10.20.0.0/16
nftables_ssh_sources:
- 192.168.0.0/16
nftables_rules:
- chain: filter_default
rules:
- ip saddr $trusted tcp dport 35432 counter jump nolimit # pgcli PostgreSQL SQL
- ip saddr $managed_hosts tcp dport 42201 counter jump nolimit # pgBackRest backup SSH
- ip saddr $managed_hosts tcp dport { 2379, 2380 } counter jump nolimit # etcd client/peer
- ip saddr $trusted tcp dport 9100 counter jump nolimit # node_exporter
- ip saddr $trusted tcp dport 9630 counter jump nolimit # pg_exporter
- ip saddr $trusted tcp dport 3000 counter jump nolimit # Grafana
- ip saddr $managed_hosts tcp dport { 19800, 19801 } counter jump nolimit # MinIO API/console
- ip saddr $cloud tcp dport { 35432-35492 } counter jump nolimit
- ip saddr $other_dc tcp dport { 42201-42210 } counter jump nolimit
35432 is the default PostgreSQL SQL port and 42201 the pgcli instance SSH
port used by pgBackRest. managed_hosts is the address list of the hosts in
[nftables] plus any extra IPs that need access, so only managed machines and
those extra sources can reach managed-only ports such as 42201, etcd
client/peer (2379, 2380) and MinIO API/console (19800, 19801); every
host in that group must define private_ip (as in hosts.ini.example). The
example adds 192.0.2.1 as a placeholder extra source. The local bridged test
environment adds the host's bridge address here because VM-to-VM traffic is
masqueraded. Ports used by external clients (SQL clients, Grafana, pgAdmin)
should keep $trusted or a dedicated set. The example also opens node_exporter
(9100), pg_exporter (9630) and Grafana (3000) to $trusted. Add rules
for any other add-on that must be reachable.
The expression (groups['nftables'] | map('extract', hostvars, 'private_ip') | list) + ['192.0.2.1'] is equivalent to reading
hostvars[host]['private_ip'] for each host in the group plus the extra IPs;
it expands at play time and keeps the set in sync with the inventory.
Set names must be valid nft identifiers, entries cannot be named ssh_sources,
and a rule that references a set with no entries is skipped. The SSH rules run
before nftables_rules, so an SSH allow rule added there cannot bypass
nftables_ssh_sources; put additional SSH sources in that list instead.
cp group_vars/nftables/main.yml.example group_vars/nftables/main.yml
# edit the set list and the SSH source list, then:
uv run ansible-playbook playbooks/nftables.yaml --limit nftables
Every host in [nftables] receives the ruleset; pgcli containers use host
networking, so any port opened in the input policy covers instance SQL/SSH,
exporters and add-ons without forwarding or DNAT rules. Existing SSH sessions
survive the reload, but new SSH connections are dropped unless the source is in
nftables_ssh_sources or nftables_ssh_allow_all is true. Extend
nftables_rules with port-scoped rules for services beyond the ports listed
above; the role supports the filter_default, filter_forward,
nat_prerouting and nat_postrouting chains.
| Path | Description |
|---|---|
playbooks/ |
Entry points: apply.yaml, ping.yaml, resources.yaml, deploy-s3.yaml, deploy-http.yaml, ha-status.yaml, nftables.yaml, passwords.yaml |
roles/ |
pgcli, pg_instance, pg_addon, pg_daemon, pg_ha, pg_ha_haproxy, pg_s3, pg_http, addon_cluster_shared, nftables |
group_vars/ |
Per-scenario and per-add-on settings; only main.yml.example files are tracked |
hosts.ini.example |
Inventory template (hosts.ini is gitignored) |
ansible.cfg.example |
Ansible config template (ansible.cfg is gitignored) |
Live inventory, group_vars/*/main.yml, host_vars/*/secrets.yaml and var/
are gitignored: keep credentials and generated TLS material out of the
repository. More deployment examples are in hosts.ini.example and the
main.yml.example files under group_vars/.
Apache License 2.0, see LICENSE.