Chapter 6. Publishing and running your playbooks in Ansible Automation Platform
Chapter 6. Publishing and running your playbooks in Ansible Automation Platform The following procedures describe how to deploy your new playbooks in your instance of Ansible Automation Platform so that you can use them to run automation jobs. 6.1. Saving your project in SCM Save your playbook project as a repository in your source control management system, for example GitHub. Procedure Initialize your project directory as a git repository. Push your project up to a source control system such as GitHub. 6.2. Running your playbook in Ansible Automation Platform To run your playbook in Ansible Automation Platform, you must create a project in automation controller for the repository where you stored your playbook project. You can then create a job template for each playbook from the project. Procedure In a browser, log in to automation controller. Configure a Source Control credential type for your source control system if necessary. See the Creating new credentials section of the Automation controller user guide for more details. In automation controller, create a project for the GitHub repository where you stored your playbook project. Refer to the Projects chapter of the Automation controller user guide . Create a job template that uses a playbook from the project that you created. Refer to the Job Templates chapter of the Automation controller user guide . Run your playbook from automation controller by launching the job template. Refer to the Launching a job template section of the Automation controller user guide .