Use Atlassian Automation with Ansible

Before you begin

To manage project automations, you must have the appropriate project permissions:

To manage global automations, you’ll need the Administer Jira permission. Learn more about global permissions in Jira Cloud.

In Ansible, make sure you have configured the following settings so your connection works properly:

Integrate your automation rule with Ansible

  1. You can use your existing application in Ansible to connect to Atlassian Automation. If you don’t have an application, create a new one. Read how to create an application in Ansible to get started. Use the details below while creating:
    Redirect URIs:
    Client Type: Confidential
    Authorisation Grant Type: Authorisation Code

  2. In your Jira Service Management, go to Automation and select Create rule.

  3. Select the Ansible action for your rule. Launch job template in Ansible is the only available action at the moment.

  4. Select Connect to create a connection with Ansible. Connections allow your automation rules to make changes in other tools and products.

  5. In your connection, enter the application information that you wish to connect to Atlassian Automation.

    1. Application name. Provide a unique name to easily identify your Ansible connection. This doesn’t have to be the name of the application, but mentioning the application name with a unique identifier can help. For example, Acme A or Acme B, where Acme is the name of the application and A/B are the unique values.

    2. Client ID. The client ID of the application in Ansible. It’s shown only once after you create an application.

    3. Client secret. The client secret of the application in Ansible. It’s shown only once after you create an application.

    4. Ansible Tower URL. This is usually the URL from the address bar of your browser while you’re in the Ansible Automation Controller.

  6. Select Connect to complete creating your connection.

This action supports waiting for response (only for Premium and Enterprise plans)

When enabled, the rule will resume only if Ansible returns a success response within 15 minutes. Else, the rule will fail.

You can choose to resume the rule even on failure response, which means even if Ansible doesn’t return a success response within 15 minutes, the rule will resume anyway.

To access the payload from Ansible, you can use the {{ansibleJobTemplate.output}} smart value.

Still need help?

The Atlassian Community is here for you.