<?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: Looking for any experience from using Ansible to manage NSO runtime in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482614#M862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have used Ansible for deployment of NSO for several projects.&amp;nbsp;&amp;nbsp; We started to use it because a customer was using an NCS version that didn't support fully nct yet so we built up a set of playbooks that did everything from installing the packages to the target server to changing the permissions and groups on the NSO files in the system to reloading the packages on a running system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some customers, especially those on the latest NSO releases will upgrade NSO with each new release so Ansible is great for that.&amp;nbsp;&amp;nbsp; Those who have a longer validation cycle for NSO do not want the playbook that upgrades NSO because it might be used &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use it to install NSO in customer environments and to local VMs for testing.&amp;nbsp;&amp;nbsp; It is as simple as changing the inventory file that lists the hosts that that should get the deployment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because Ansible is just a wrapper around scripts with some special helpers, it can be adapted to do just about anything and frequently you will find that the Ansible folks have build in a function so that you don't have to do it with pure scripting e.g. here is a playbook for uploading packages to the NSO server.&amp;nbsp;&amp;nbsp; The comments document the behavior and it is clear that Ansible has built in rsync, unzip, and a (somewhat odd syntax) file delete capability.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;---&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp; - name: Copy NSO and supporting packages and resources to the target&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hosts: all&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tasks:&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Synchronize the local distribution dir with the remote distribution dir&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # This will pick up everything in distribution (including packages) and&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # make sure it is on the target.&amp;nbsp; The synchronize command is a wrapper&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # around rsync so it is pretty efficient about only sending when things change&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: Synchronize the target distribution directory with the local&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; synchronize: src={{pkgsrc}} dest={{pkgdst}} recursive=yes delete=yes&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: Copy the resources to the target and expand&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unarchive: src={{pkgsrc}}/resources.tar.gz dest={{pkgdst}}/distribution&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: Delete the .tar.gz on the target&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file: path={{pkgdst}}/distribution/resources.tar.gz state=absent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jul 2017 02:03:16 GMT</pubDate>
    <dc:creator>scott.barvick</dc:creator>
    <dc:date>2017-07-07T02:03:16Z</dc:date>
    <item>
      <title>Looking for any experience from using Ansible to manage NSO runtime</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482612#M860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I have heard mentions of using Ansible to manage the NSO development and runtime environments, and am interested to capture any learnings from that. This would include tasks like installing and upgrading of the NSO runtime environment and packages, and perhaps even using Ansible to manage the lifecycle of clusters or LSO deployments across servers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 11:54:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482612#M860</guid>
      <dc:creator>camoberg</dc:creator>
      <dc:date>2019-03-01T11:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for any experience from using Ansible to manage NSO runtime</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482613#M861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Part of branchInfra we have some basic flow , where we use ansible for nso and package installation. It is just a basic framework . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 00:08:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482613#M861</guid>
      <dc:creator>spudukko</dc:creator>
      <dc:date>2017-07-07T00:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for any experience from using Ansible to manage NSO runtime</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482614#M862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have used Ansible for deployment of NSO for several projects.&amp;nbsp;&amp;nbsp; We started to use it because a customer was using an NCS version that didn't support fully nct yet so we built up a set of playbooks that did everything from installing the packages to the target server to changing the permissions and groups on the NSO files in the system to reloading the packages on a running system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some customers, especially those on the latest NSO releases will upgrade NSO with each new release so Ansible is great for that.&amp;nbsp;&amp;nbsp; Those who have a longer validation cycle for NSO do not want the playbook that upgrades NSO because it might be used &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use it to install NSO in customer environments and to local VMs for testing.&amp;nbsp;&amp;nbsp; It is as simple as changing the inventory file that lists the hosts that that should get the deployment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because Ansible is just a wrapper around scripts with some special helpers, it can be adapted to do just about anything and frequently you will find that the Ansible folks have build in a function so that you don't have to do it with pure scripting e.g. here is a playbook for uploading packages to the NSO server.&amp;nbsp;&amp;nbsp; The comments document the behavior and it is clear that Ansible has built in rsync, unzip, and a (somewhat odd syntax) file delete capability.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;---&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp; - name: Copy NSO and supporting packages and resources to the target&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hosts: all&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tasks:&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Synchronize the local distribution dir with the remote distribution dir&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # This will pick up everything in distribution (including packages) and&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # make sure it is on the target.&amp;nbsp; The synchronize command is a wrapper&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # around rsync so it is pretty efficient about only sending when things change&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: Synchronize the target distribution directory with the local&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; synchronize: src={{pkgsrc}} dest={{pkgdst}} recursive=yes delete=yes&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: Copy the resources to the target and expand&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unarchive: src={{pkgsrc}}/resources.tar.gz dest={{pkgdst}}/distribution&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - name: Delete the .tar.gz on the target&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file: path={{pkgdst}}/distribution/resources.tar.gz state=absent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 02:03:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482614#M862</guid>
      <dc:creator>scott.barvick</dc:creator>
      <dc:date>2017-07-07T02:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for any experience from using Ansible to manage NSO runtime</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482615#M863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very cool. Do you have any playbooks that you would be willing to share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 06:35:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482615#M863</guid>
      <dc:creator>camoberg</dc:creator>
      <dc:date>2017-07-07T06:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for any experience from using Ansible to manage NSO runtime</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482616#M864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Very cool, this is &lt;EM&gt;exactly&lt;/EM&gt; what I was looking for. Would you be interested in contributing some of what you have to a devnet github repo and see if we can build a reusable, shareable set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 06:39:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482616#M864</guid>
      <dc:creator>camoberg</dc:creator>
      <dc:date>2017-07-07T06:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for any experience from using Ansible to manage NSO runtime</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482617#M865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; love it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 07:39:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482617#M865</guid>
      <dc:creator>frlundbe</dc:creator>
      <dc:date>2017-07-07T07:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for any experience from using Ansible to manage NSO runtime</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482618#M866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NGENA also uses ansible for deployments. I think it'd be great to standardize on some basic playbooks, especially if someone who is better than I am at ansible can make it fairly modular, it sounds like Scott's work is a good start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 13:00:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482618#M866</guid>
      <dc:creator>vleijon</dc:creator>
      <dc:date>2017-07-07T13:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for any experience from using Ansible to manage NSO runtime</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482619#M867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After deploying NSO in a fresh install via Ansible, I needed to run some NSO commands to set up Quagga and NSO HA components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to do this, I wrote all the commands out to a file using Ansible blockinfile with variables, then executed ncs_cli as the nsoadmin (ncsadmin) user which ran the commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example as follows:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - name: create NSO command file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; blockinfile:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; path: "{{ nso_commands_file }}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create: yes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: "0600"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; owner: "{{nso_user}}"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; marker: "! {mark} Ansible section"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; block: |&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; packages reload&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conf t&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; devices template hcc-master config quagga-bgp:hostname MASTER&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; devices template hcc-slave config quagga-bgp:hostname SLAVE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; devices template hcc-failover-master config quagga-bgp:hostname MASTER&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; devices template hcc-none config quagga-bgp:hostname {{nso_ha_role}}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; commit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ha bgp anycast-path-min 2 anycast-prefix {{nso_ha_anycast_ip}}/{{nso_ha_anycast_ip_bits}}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ha token {{rr_bgp_pass}} local-user {{nso_user}}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; commit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ha failure-limit 10&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ha interval 4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ha member {{nso_ha_a_hostname}} address {{nso_ha_a_mgt_ip}} default-ha-role master quagga-device nso1-quagga cluster-manager true&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ha member {{nso_ha_b_hostname}} address {{nso_ha_b_mgt_ip}} default-ha-role slave quagga-device nso2-quagga failover-master true&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; commit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ha commands activate&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; # You can use shell to run other executables to perform actions inline&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - name: Run ncs_cli and load in devices&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; command: /opt/nso/current/bin/ncs_cli -C {{ nso_commands_file }}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; become_user: "{{nso_user}}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; become: true&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; # clean up temp file&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - name: Remove NSO temp file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file: path="{{ nso_commands_file }}" state=absent&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; when: debug == 0&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 00:56:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482619#M867</guid>
      <dc:creator>Robert Moss</dc:creator>
      <dc:date>2017-07-11T00:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for any experience from using Ansible to manage NSO runtime</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482620#M868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can contribute what we have as a base.&amp;nbsp; I'll make it a bit more generic and submit it to github within a week or so.&amp;nbsp; Just like the other other examples we have seen so far, Ansible is very flexible and can do just about anything several different ways.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 01:38:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482620#M868</guid>
      <dc:creator>scott.barvick</dc:creator>
      <dc:date>2017-07-11T01:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for any experience from using Ansible to manage NSO runtime</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482621#M869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for late reply, but: great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:01:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/looking-for-any-experience-from-using-ansible-to-manage-nso/m-p/3482621#M869</guid>
      <dc:creator>camoberg</dc:creator>
      <dc:date>2017-07-24T11:01:38Z</dc:date>
    </item>
  </channel>
</rss>

