<?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: Automation with Ansible in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/Automation-with-Ansible/m-p/89403#M331</link>
    <description>here is my play book.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- name: check reachable hosts&lt;BR /&gt;hosts: all&lt;BR /&gt;vars:&lt;BR /&gt;ansible_python_interpreter: /usr/bin/python3&lt;BR /&gt;remote_user: admin&lt;BR /&gt;gather_facts: no&lt;BR /&gt;tasks:&lt;BR /&gt;- command: ping -c1 {{ inventory_hostname }}&lt;BR /&gt;delegate_to: localhost&lt;BR /&gt;register: ping_result&lt;BR /&gt;&lt;BR /&gt;- name: add-host&lt;BR /&gt;cp_mgmt_host:&lt;BR /&gt;ip_address: 192.0.2.1&lt;BR /&gt;name: New Host 1&lt;BR /&gt;state: present&lt;BR /&gt;become: yes&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 22 Jun 2020 09:49:01 GMT</pubDate>
    <dc:creator>Abhishek_Kumar1</dc:creator>
    <dc:date>2020-06-22T09:49:01Z</dc:date>
    <item>
      <title>Automation with Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/Automation-with-Ansible/m-p/89238#M328</link>
      <description>&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a host using ansible script. while trying to run the script. i am getting below error.&lt;/P&gt;&lt;P&gt;I have a R80.40 Mgmt deployed in GCP.&lt;/P&gt;&lt;P&gt;fatal: [35.201.154.110]: FAILED! =&amp;gt; {"changed": false, "module_stderr": "Shared connection to 35.201.154.110 closed.\r\n", "module_stdout": "admin is not in the sudoers file. This incident will be reported.\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 17:52:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Automation-with-Ansible/m-p/89238#M328</guid>
      <dc:creator>Abhishek_Kumar1</dc:creator>
      <dc:date>2020-06-19T17:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Automation with Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/Automation-with-Ansible/m-p/89239#M329</link>
      <description>&lt;P&gt;Without seeing your playbook, I'm curious why ansible is having the admin user attempt to use sudo. When logging into Gaia as an administrative user, the use of sudo is not required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;fatal: [...]: FAILED! =&amp;gt; {&lt;BR /&gt;  "changed": false, &lt;BR /&gt;  "module_stderr": &lt;BR /&gt;    "Shared connection to ... closed.\r\n", &lt;BR /&gt;   &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;  &lt;U&gt;"module_stdout": "admin is not in the sudoers file. This incident will be reported.\r\n"&lt;/U&gt;, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", &lt;BR /&gt;    "rc": 1&lt;BR /&gt;   }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditormasher_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 18:00:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Automation-with-Ansible/m-p/89239#M329</guid>
      <dc:creator>masher</dc:creator>
      <dc:date>2020-06-19T18:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Automation with Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/Automation-with-Ansible/m-p/89278#M330</link>
      <description>&lt;P&gt;here is my play book.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- name: check reachable hosts&lt;BR /&gt;hosts: all&lt;BR /&gt;vars:&lt;BR /&gt;ansible_python_interpreter: /usr/bin/python3&lt;BR /&gt;remote_user: admin&lt;BR /&gt;gather_facts: no&lt;BR /&gt;tasks:&lt;BR /&gt;- command: ping -c1 {{ inventory_hostname }}&lt;BR /&gt;delegate_to: localhost&lt;BR /&gt;register: ping_result&lt;/P&gt;&lt;P&gt;- name: add-host&lt;BR /&gt;cp_mgmt_host:&lt;BR /&gt;ip_address: 192.0.2.1&lt;BR /&gt;name: New Host 1&lt;BR /&gt;state: present&lt;BR /&gt;become: yes&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jun 2020 15:29:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Automation-with-Ansible/m-p/89278#M330</guid>
      <dc:creator>Abhishek_Kumar1</dc:creator>
      <dc:date>2020-06-20T15:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Automation with Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/Automation-with-Ansible/m-p/89403#M331</link>
      <description>here is my play book.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- name: check reachable hosts&lt;BR /&gt;hosts: all&lt;BR /&gt;vars:&lt;BR /&gt;ansible_python_interpreter: /usr/bin/python3&lt;BR /&gt;remote_user: admin&lt;BR /&gt;gather_facts: no&lt;BR /&gt;tasks:&lt;BR /&gt;- command: ping -c1 {{ inventory_hostname }}&lt;BR /&gt;delegate_to: localhost&lt;BR /&gt;register: ping_result&lt;BR /&gt;&lt;BR /&gt;- name: add-host&lt;BR /&gt;cp_mgmt_host:&lt;BR /&gt;ip_address: 192.0.2.1&lt;BR /&gt;name: New Host 1&lt;BR /&gt;state: present&lt;BR /&gt;become: yes&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jun 2020 09:49:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Automation-with-Ansible/m-p/89403#M331</guid>
      <dc:creator>Abhishek_Kumar1</dc:creator>
      <dc:date>2020-06-22T09:49:01Z</dc:date>
    </item>
  </channel>
</rss>

