<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't get CDOT 9.4 working with Ansible in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Can-t-get-CDOT-9-4-working-with-Ansible/m-p/141843#M2705</link>
    <description>&lt;P&gt;Even I changed it to localhost, still had the issue. After several times attampt, it turned out to be related to indentention. I am new to ansible and also python. So had no experience for the syntax.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Aug 2018 04:14:00 GMT</pubDate>
    <dc:creator>aaa3232d</dc:creator>
    <dc:date>2018-08-01T04:14:00Z</dc:date>
    <item>
      <title>Can't get CDOT 9.4 working with Ansible</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Can-t-get-CDOT-9-4-working-with-Ansible/m-p/141675#M2695</link>
      <description>&lt;P&gt;I think I have checked all the avaiable document/links to try to&amp;nbsp;get my CDOT 9.4 Sim working with Ansible. I can't run any ansible command or playbook to NetApp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Netapp: CDOT 9.4 Sim or&amp;nbsp;9.1P6 (same issue)&lt;/P&gt;
&lt;P&gt;My Ansible: I have copied all the netapp related file from&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;/usr/lib/python2.7/site-packages/ansible to&amp;nbsp;home/ansible/.ansible/plugins.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[ansible@hklsap14 netapp]$ ansible --version&lt;BR /&gt;ansible 2.6.0&lt;BR /&gt; config file = /etc/ansible/ansible.cfg&lt;BR /&gt; configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']&lt;BR /&gt; ansible python module location = /usr/lib/python2.7/site-packages/ansible&lt;BR /&gt; executable location = /bin/ansible&lt;BR /&gt; python version = 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have create the ssh pairs so I can ssh to CDOT without issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[ansible@hklsap14 netapp]$ ssh 10.69.6.121 version&lt;BR /&gt;NetApp Release 9.4: Fri Jun 08 22:50:12 UTC 2018&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the Ansible error:'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[ansible@hklsap14 netapp]$ ansible -m na_ontap_svm -a "name=ansibleVServer root_volume=vol1 root_volume_aggregate=aggr0_sgfasdr101_01 root_volume_security_style=ntfs" netapp -vvv&lt;BR /&gt;ansible 2.6.0&lt;BR /&gt; config file = /etc/ansible/ansible.cfg&lt;BR /&gt; configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']&lt;BR /&gt; ansible python module location = /usr/lib/python2.7/site-packages/ansible&lt;BR /&gt; executable location = /bin/ansible&lt;BR /&gt; python version = 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]&lt;BR /&gt;Using /etc/ansible/ansible.cfg as config file&lt;BR /&gt;Parsed /etc/ansible/hosts inventory source with ini plugin&lt;BR /&gt;META: ran handlers&lt;BR /&gt;&amp;lt;10.69.6.121&amp;gt; ESTABLISH SSH CONNECTION FOR USER: None&lt;BR /&gt;&amp;lt;10.69.6.121&amp;gt; SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/089fc91cf5 10.69.6.121 '/bin/sh -c '"'"'echo ~ &amp;amp;&amp;amp; sleep 0'"'"''&lt;BR /&gt;&amp;lt;10.69.6.121&amp;gt; (255, '\x07\r\nError: "/bin/sh" is not a recognized command\r\n\r\n', '')&lt;BR /&gt;10.69.6.121 | UNREACHABLE! =&amp;gt; {&lt;BR /&gt; "changed": false,&lt;BR /&gt; "msg": "Failed to connect to the host via ssh: ",&lt;BR /&gt; "unreachable": true&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[ansible@hklsap14 netapp]$ ansible-playbook main.yml -vvvv&lt;BR /&gt;ansible-playbook 2.6.0&lt;BR /&gt; config file = /etc/ansible/ansible.cfg&lt;BR /&gt; configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']&lt;BR /&gt; ansible python module location = /usr/lib/python2.7/site-packages/ansible&lt;BR /&gt; executable location = /bin/ansible-playbook&lt;BR /&gt; python version = 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]&lt;BR /&gt;Using /etc/ansible/ansible.cfg as config file&lt;BR /&gt;setting up inventory plugins&lt;BR /&gt;Parsed /etc/ansible/hosts inventory source with ini plugin&lt;BR /&gt;ERROR! Syntax Error while loading YAML.&lt;BR /&gt; mapping values are not allowed in this context&lt;/P&gt;
&lt;P&gt;The error appears to have been in '/home/ansible/script/playbook/netapp/main.yml': line 24, column 17, but may&lt;BR /&gt;be elsewhere in the file depending on the exact syntax problem.&lt;/P&gt;
&lt;P&gt;The offending line appears to be:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; na_cdot_svm:&lt;BR /&gt; ^ here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:29:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Can-t-get-CDOT-9-4-working-with-Ansible/m-p/141675#M2695</guid>
      <dc:creator>aaa3232d</dc:creator>
      <dc:date>2025-06-04T13:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get CDOT 9.4 working with Ansible</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Can-t-get-CDOT-9-4-working-with-Ansible/m-p/141679#M2696</link>
      <description>&lt;P&gt;Difficult without the actual playbook - it does state you have a syntax error.&amp;nbsp; But sounds like you might be trying to connect directly to ONTAP which is not how the Netapp modules work.&amp;nbsp; The modules connect through Python from the Ansible machine so there's no ssh session.&amp;nbsp; So the top of your playbook would look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;name: ONTAP&lt;BR /&gt; hosts: localhost&lt;BR /&gt; gather_facts: no&lt;BR /&gt; connection: local&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...and then the task calls would have the hostname, username, and password&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you look at the articles on netapp.io for details on installing the latest modules, example playbooks, etc. You definitely want the new modules!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;A href="https://netapp.io/2018/05/05/ansible-support-receives-massively-expanded-ontap-modules/" target="_blank"&gt;https://netapp.io/2018/05/05/ansible-support-receives-massively-expanded-ontap-modules/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;A href="https://netapp.io/2018/06/08/sample-ansible-playbook-ontap-nfs-export-provision-and-present/" target="_blank"&gt;https://netapp.io/2018/06/08/sample-ansible-playbook-ontap-nfs-export-provision-and-present/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;A href="https://netapp.io/2018/07/11/switching-to-ansible-from-wfa/" target="_blank"&gt;https://netapp.io/2018/07/11/switching-to-ansible-from-wfa/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's also a link at the top of the netapp.io site to join the NetApp Slack channels - for Ansible you'll want #configurationmgmt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 14:54:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Can-t-get-CDOT-9-4-working-with-Ansible/m-p/141679#M2696</guid>
      <dc:creator>JohnChampion</dc:creator>
      <dc:date>2018-07-24T14:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get CDOT 9.4 working with Ansible</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Can-t-get-CDOT-9-4-working-with-Ansible/m-p/141738#M2699</link>
      <description>&lt;P&gt;Yes, without the playbook this is hard to check.&amp;nbsp; However I can se you are trying to use a na_cdot_svm module.. these are outdated and being removed from ansible in a future release.&amp;nbsp; We have a set of 33 new and improved modules that you can get with ansible 2.6 or side load from our site.&amp;nbsp; See here for more information.&amp;nbsp;&amp;nbsp;&lt;A href="https://netapp.io/2018/05/05/ansible-support-receives-massively-expanded-ontap-modules/" target="_blank"&gt;https://netapp.io/2018/05/05/ansible-support-receives-massively-expanded-ontap-modules/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 15:47:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Can-t-get-CDOT-9-4-working-with-Ansible/m-p/141738#M2699</guid>
      <dc:creator>dblackwe</dc:creator>
      <dc:date>2018-07-26T15:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get CDOT 9.4 working with Ansible</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Can-t-get-CDOT-9-4-working-with-Ansible/m-p/141820#M2703</link>
      <description>&lt;P&gt;Thanks for your reply. orginally, I didn't follow the link you mentioned cause I thought all the modules should be already updated as Netapp modules has been added to Ansible release by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I followed the link to download updated module. Same result. I tried both&amp;nbsp;na_ontap_svm and&amp;nbsp;na_cdot_svm modeule. Here is the YMAL file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;- name: Sample Playbook&lt;/P&gt;
&lt;P&gt;hosts: netapp&lt;/P&gt;
&lt;P&gt;gather_facts: no&lt;/P&gt;
&lt;P&gt;connection: local&lt;/P&gt;
&lt;P&gt;vars:&lt;/P&gt;
&lt;P&gt;netapp_hostname:&amp;nbsp;1.1.1.1&amp;nbsp; # Your hostname&lt;/P&gt;
&lt;P&gt;netapp_username: admin # Username&lt;/P&gt;
&lt;P&gt;netapp_password: 123456 # Password&lt;/P&gt;
&lt;P&gt;tasks:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;- name: Create SVM&lt;/P&gt;
&lt;P&gt;na_cdot_svm:&lt;/P&gt;
&lt;P&gt;state: present&lt;/P&gt;
&lt;P&gt;name: ansibleVServer&lt;/P&gt;
&lt;P&gt;root_volume: vol1&lt;/P&gt;
&lt;P&gt;root_volume_aggregate: aggr0_sgfasdr101_01&lt;/P&gt;
&lt;P&gt;root_volume_security_style: mixed&lt;/P&gt;
&lt;P&gt;hostname: "{{ netapp_hostname }}"&lt;/P&gt;
&lt;P&gt;username: "{{ netapp_username }}"&lt;/P&gt;
&lt;P&gt;password: "{{ netapp_password }}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 09:15:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Can-t-get-CDOT-9-4-working-with-Ansible/m-p/141820#M2703</guid>
      <dc:creator>aaa3232d</dc:creator>
      <dc:date>2018-07-31T09:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get CDOT 9.4 working with Ansible</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Can-t-get-CDOT-9-4-working-with-Ansible/m-p/141832#M2704</link>
      <description>&lt;P&gt;the hosts: netapp line needs to be changed to hosts: localhost. &amp;nbsp;The host connection is called out in the task configuration, however you are asking ansible to do a test ahead of time that ONTAP is not able to do being it doens't have the sh shell that ansible will look for.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 12:15:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Can-t-get-CDOT-9-4-working-with-Ansible/m-p/141832#M2704</guid>
      <dc:creator>dblackwe</dc:creator>
      <dc:date>2018-07-31T12:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get CDOT 9.4 working with Ansible</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Can-t-get-CDOT-9-4-working-with-Ansible/m-p/141843#M2705</link>
      <description>&lt;P&gt;Even I changed it to localhost, still had the issue. After several times attampt, it turned out to be related to indentention. I am new to ansible and also python. So had no experience for the syntax.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 04:14:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Can-t-get-CDOT-9-4-working-with-Ansible/m-p/141843#M2705</guid>
      <dc:creator>aaa3232d</dc:creator>
      <dc:date>2018-08-01T04:14:00Z</dc:date>
    </item>
  </channel>
</rss>

