- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Ansible Tower Inventory Overwrite Option
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 09:24 PM
11-23-2023 09:24 PM
Ansible Tower Inventory Overwrite Option
Hi Experts,
As per below information, when I enable overwrite option with source inventory from project. Ansible will be overwritten on the hosts that added by Morpheus when it sync with project inventory.
As per my test outcome, it didn’t overwrite.
Morpheus version: 6.2.2
Ansible AWX: 23.0.0
Ansible: Created inventory file and added hosts record in inventory.ini file that belong to the project.
Ansible: Configure source inventory from the project.
Ansible: Perform Sync inventory and hosts are added in inventory from project.
Morpheus: Provisioned the instance to the cloud that enabled Ansible tower and inventory. Morpheus added host to the inventory.
Ansible: Sync the inventory from project and host record that added by Morpheus is still exist.
Any feedback?
Regards,
Aung
- Tags:
- Ansible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 07:28 PM
11-30-2023 07:28 PM
Re: Ansible Tower Inventory Overwrite Option
Hello Anish,
As per article, any hosts added by Morpheus will be overwritten when we run inventory sync from Project if we enabled overwrite option. It is expected outcome right? But it didn’t happen in my testing scenario.
And also Morpheus will still add the host to the inventory when we run only Ansible Tower automation task/workflow (Library > Automation > Execution). Is it?
If we expect morpheus to check if a host with the name exists before adding it, how we can achieve? do we need to run the task which perform inventory hosts check using Ansible API or other options?
Thanks,
Aung
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 01:07 AM
11-28-2023 01:07 AM
Re: Ansible Tower Inventory Overwrite Option
Hello @aabraham,
I didn’t use the group option. Yes, I saw 2 host entries.(one from Project source and another one from Morpheus after instance provisioned).
Regards,
Aung

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 06:57 AM
11-28-2023 06:57 AM
Re: Ansible Tower Inventory Overwrite Option
Are you executing an ansible tower task in the provision or pos-provision phase of the instance provisioning?
Thanks,
Anish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 07:51 AM
11-28-2023 07:51 AM
Re: Ansible Tower Inventory Overwrite Option
I am executing post-provision phase of the instance.
Thanks,
Aung

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 03:21 AM
11-24-2023 03:21 AM
Re: Ansible Tower Inventory Overwrite Option
Hi Anug,
If the host still exist in source when the sync is actioned from project, the host entry would be present. Do you see 2 host entries in the invenotry, if ‘yes’ are they in the same group?
Thanks,
Anish.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 08:58 AM
11-30-2023 08:58 AM
Re: Ansible Tower Inventory Overwrite Option
Hi Anug,
Morpheus will add the host to the inventory as part of the post provision task execution. Are you expecting morpheus to check if a host with the name exists before adding it?
Thanks
Anish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 06:18 PM
12-11-2023 06:18 PM
Re: Ansible Tower Inventory Overwrite Option
Hello @aabraham,
May I get your feedback please?
Regards,
Aung