ServiceNow (snow) inventory for Ansible Tower 3.2.1

If you are a ServiceNow user you can now go to https://github.com/ServiceNowITOM/ansible-sn-inventory use the dynamic inventory available to sync CI items from Service Now to ansible tower. This tutorial will show what you need to do to make this happen on ansible tower 3.2.1. A big thanks to Reuben Stump, Alex Mittell for writing this integration.

Step 1. Install the python-configparser from epel 

Step 2. create the file now.ini and place it in /etc/ansible/now.ini

You can find the file here:  now.ini

Modify the instance, user and password.

Step 2. Login to Ansible Tower and add a custom inventory under Settings -> Inventory Scripts -> ADD. For the custom script go get the  now.py

Step 3. Go create an inventory under Inventory -> ADD -> Inventory

Step 4. Then click on Sources and add

Step 5. Before you can go ahead and sync you will need to set the env var NOW_INI. You can do this in Settings -> Configure Tower -> Jobs -> Extra Environment Variables

 

Step 6. You are now ready to sync. Click on the sync button

Step 7. If your sync was successful you should see the following under jobs

Leave a Reply

Your email address will not be published. Required fields are marked *

*


Hit Counter provided by laptop reviews