Ansible Playbook
---
- hosts: localhost
become_user: awx
vars:
resource_group: sampleresourcegroup-rg
location: westus2
tasks:
- name: Create resource group
azure_rm_resourcegroup:
name: "{{ resource_group }}"
location: "{{ location }}"
Define resource_group and location in Ansible Tower Extra Variables Section with your specific.
Create Job Template, add
1. Name,
2. description,
3. Job Type- Run,
4. Inventory — sapglobal-inventory01,
5. Project — Align Technology CLIP DV01 Environment,
6. choose Playbook — Resource Group/create_resource_group.yml,
7. Credentials — Microsoft Azure Resource Manager Key
8. Forks — 0
9. Limit — <Empty>
10. Verbosity — 0 (Normal)
11. Job Tags — <Empty>
12. Skip Tags — <Empty>
13. Labels — <Empty>
14. Instance Groups — <Empty>
15. Job Slicing — <Empty>
16. Timeout — <Empty>
17. Show Changes — Off
18. Options — Enable Privilege Escalation
Click on SAVE and then when page will refresh Launch Button will be Enabled, Click on LAUNCH.
This Article has been published by OrionLab.io