> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/r/redhat-automation-controller-beta-formerly-ansible-tower.md).

# Redhat Automation Controller Beta (formerly Ansible Tower)

Red Hat Automation Controller, formerly Ansible Tower, runs Ansible automation. OctoXLabs uses it to add the hosts in its inventories and the controller users to the OctoXLabs inventory. This adapter is in beta.

## Use cases

* List hosts that Automation Controller manages.

```
Adapters = redhat-automation-controller
```

* Find managed hosts that no EDR covers.

```
Adapters = redhat-automation-controller AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                                            | Port                         | Protocol                           |
| ------------------- | ------------------------------------------------------ | ---------------------------- | ---------------------------------- |
| OctoXLabs connector | Automation Controller host (IP or host name you enter) | 8013 (default, configurable) | HTTPS (HTTP when Is Secure is off) |

### Required permissions

| Scope or role  | Permission | Needed for                 |
| -------------- | ---------- | -------------------------- |
| System Auditor | Read       | Hosts, instances and users |

The account must have the System Auditor role. See the [Ansible Tower Users Guide](https://docs.ansible.com/ansible-tower/latest/html/userguide/users.html).

## Create credentials in Redhat Automation Controller Beta (formerly Ansible Tower)

Create a user in Automation Controller and give it the System Auditor role. The source instructions do not give the click path.

## Connection parameters

| Parameter     | Required | Type    | Default | Description                                                                  |
| ------------- | -------- | ------- | ------- | ---------------------------------------------------------------------------- |
| IP            | Yes      | String  | None    | IP address or host name of Automation Controller.                            |
| Port          | No       | Integer | 8013    | Port of the API.                                                             |
| Username      | Yes      | String  | None    | Account used to connect.                                                     |
| Password      | Yes      | String  | None    | Password of that account.                                                    |
| Base API Path | No       | String  | /api/   | Base path of the API. Change it only if your installation uses another path. |
| Is Secure?    | No       | Boolean | True    | Use HTTPS.                                                                   |
| Timeout       | No       | Integer | 30      | Seconds to wait for API responses.                                           |

## Troubleshooting

| Error message | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| Status Code:  | The API answered with a status other than the one the connector expects. The message also lists the URL, the method and the response body. | Read the status code and the response body in the message, then check the credentials, the permissions and the network path. |

## Change history
