Files
system-config/playbooks/roles/install-ansible
Clark Boylan ef35694661 Update Ansible config to set ssh ServerAliveInterval
We hit Ansible rc -13 again in gate testing for a system-config change.
This is the error code that Ansible returns for a task when it tries to
connect via ssh as the ControlMaster is shutting down due to the
ControlPerist timeout being reached. We already set ControlPersist to
180 seconds in an effort to make this an uncommon issue. Set
ServerAliveInterval to 60 seconds to match zuul's configuration for
Ansible as that seems to work well for Zuul jobs.

Change-Id: I66f28fcf7f539b76bfbb6da99c9836a6a92431e5
2025-07-09 14:00:28 -07:00
..
2021-06-01 09:38:32 +10:00
2025-06-30 12:41:38 -07:00

Install and configure Ansible on a host via pip

This will install ansible into a virtualenv at /usr/ansible-venv

Role Variables

A dictionary of configuration keys and their values for ARA's Ansible plugins.

Default configuration keys:

  • api_client: offline (can be http for sending to remote API servers)
  • api_server: http://127.0.0.1:8000 (has no effect when using offline)
  • api_username: null (if required, an API username)
  • api_password: null (if required, an API password)
  • api_timeout: 30 (the timeout on http requests)

For a list of available configuration options, see the ARA documentation