- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Can I use Morpheus variables with Ansible Command ...
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
04-28-2022 05:51 AM
04-28-2022 05:51 AM
Can I use Morpheus variables with Ansible Command Options?
In Ansible task type, can morpheus variables be used in Command Options (execute target is set to Local) ? eg: <%=accountName%> ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2022 05:58 AM
04-28-2022 05:58 AM
Re: Can I use Morpheus variables with Ansible Command Options?
okie, that is not available in MorpheusAccess

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2022 05:58 AM
04-28-2022 05:58 AM
Re: Can I use Morpheus variables with Ansible Command Options?
but for a valid var it would evaluate

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2022 08:09 AM
11-22-2022 08:09 AM
Re: Can I use Morpheus variables with Ansible Command Options?
There is also a huge “morpheus” extravar that is handed in to Ansible by default. You might run an Ansible playbook e.g.:
- hosts: all
gather_facts: false
tasks:
- debug: var=morpheus
This will dump out the morpheus var to the console so you can see what’s in it. it’ll be unformatted, and for some reason the | to_nice_json and | to_nice_yaml filters don’t seem to work on it, even when the msg: argument is used for debug, but they DO work if you use the template module to dump the morpheus var to /tmp or something.
You can also add values to the ‘morpheus’ extravar in various ways, but you should look first to see if what you need is already there.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2022 06:09 AM
04-28-2022 06:09 AM
Re: Can I use Morpheus variables with Ansible Command Options?
host_list declined parsing /var/opt/morpheus/morpheus-ui/dynamic_inv/ST01/morpheusinv.yml