<?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: Setting Checkpoint gaia Password policy through ansible || getting error in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272896#M884</link>
    <description>&lt;P&gt;In your output with the failure message, are you obscuring any of that text with the "****" characters? &amp;nbsp;That shouldn't be sensitive information, but if you think it is, you can send me a private message with the extra details. &amp;nbsp;The error line still says line 4 column 29, but your line 4 does not have that many characters. &amp;nbsp;Is this the only play in your playbook?&lt;/P&gt;
&lt;P&gt;I ran &lt;FONT face="andale mono,times"&gt;yamllint&lt;/FONT&gt;&amp;nbsp;and &lt;FONT face="andale mono,times"&gt;ansible-lint&lt;/FONT&gt;&amp;nbsp;on your example, and the formatting now passes cleanly with no errors. &amp;nbsp;You must have something else configured that is not shown here. &amp;nbsp;Feel free to send more details in the private message if you think that's necessary.&lt;/P&gt;
&lt;P&gt;As requested, I did run your playbook against a lab host using my Docker collection. &amp;nbsp;I used your Ansible version (2.17) with Python 3.11 (I don't have an image built for 3.10, but I can make one if necessary). &amp;nbsp;I used the Check Point Gaia module collection version 6.0.0, but I can use several other versions. The playbook ran successfully.&lt;/P&gt;
&lt;DIV id="tinyMceEditor_d6f26e8244161Duane_Toler_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-03-09 at 2.30.37 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/33644iC62CA70B86569828/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-03-09 at 2.30.37 PM.png" alt="Screenshot 2026-03-09 at 2.30.37 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I obscured some irrelevant status info that my script emits, which isn't relevant for this exercise. &amp;nbsp;My script at the top runs against my Docker host, checks out a new git branch I named&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="andale mono,times"&gt;kiran/gaia-password-policy&lt;FONT face="arial,helvetica,sans-serif"&gt;,&amp;nbsp;runs the Docker image for ansible-2.17-python-3.11, loads the Ansible collection named check_point.gaia, and executes the playbook in the specified path and name, with the lab &lt;FONT face="andale mono,times"&gt;testing&lt;/FONT&gt;&amp;nbsp;inventory hosts.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I also ran with the Check Point Gaia collection version 7.0.0 and it also ran successfully.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Your playbook (but I had to add my own authentication variables; you have these in your own inventory already):&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-03-09 at 2.50.38 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/33645i3F542A59F3377027/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-03-09 at 2.50.38 PM.png" alt="Screenshot 2026-03-09 at 2.50.38 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2026 18:52:06 GMT</pubDate>
    <dc:creator>Duane_Toler</dc:creator>
    <dc:date>2026-03-09T18:52:06Z</dc:date>
    <item>
      <title>Setting Checkpoint gaia Password policy through ansible || getting error</title>
      <link>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272150#M878</link>
      <description>&lt;P&gt;This is my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ansible cfg&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[defaults]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;inventory&lt;/SPAN&gt;&lt;SPAN&gt; = /etc/ansible/checkpoint/hosts&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;deprecation_warnings&lt;/SPAN&gt;&lt;SPAN&gt; = False&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;host_key_checking&lt;/SPAN&gt;&lt;SPAN&gt;=false&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;retry_files_enabled&lt;/SPAN&gt;&lt;SPAN&gt;=false&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;interpreter_python&lt;/SPAN&gt;&lt;SPAN&gt;=/usr/bin/python3&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;log_path&lt;/SPAN&gt;&lt;SPAN&gt; = /etc/ansible/checkpoint/ansible.log&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[ssh_connection]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;scp_if_ssh&lt;/SPAN&gt;&lt;SPAN&gt;=True&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;========&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Host File&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[mgmt]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;192.168.17.82&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;[mgmt:vars]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ansible_httpapi_validate_certs&lt;/SPAN&gt;&lt;SPAN&gt;=False&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ansible_httpapi_use_ssl&lt;/SPAN&gt;&lt;SPAN&gt;=True&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ansible_user&lt;/SPAN&gt;&lt;SPAN&gt;=admin&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ansible_password&lt;/SPAN&gt;&lt;SPAN&gt;=admin1234&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ansible_network_os&lt;/SPAN&gt;&lt;SPAN&gt;=check_point.gaia.checkpoint&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ansible_httpapi_base_url&lt;/SPAN&gt;&lt;SPAN&gt;=/gaia_api/v1.9&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;====&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt; : &lt;/SPAN&gt;&lt;SPAN&gt;Hardening command&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;hosts&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;mgmt &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;connection&lt;/SPAN&gt;&lt;SPAN&gt; : &lt;/SPAN&gt;&lt;SPAN&gt;httpapi&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;gather_facts&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;no&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;tasks&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Change password policy&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;check_point.gaia.cp_gaia_password_policy&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_strength&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;minimum_length&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;complexity&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;palindrome_check_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_history&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;check_history_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;repeated_history_length&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;lock_settings&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;must_one_time_password_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_expiration_days&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;90&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_expiration_warning_days&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_expiration_maximum_days_before_lock&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;inactivity_settings&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;lock_unused_accounts_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;inactivity_threshold_days&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;365&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_attempts_settings&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_lock_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_lock_enforced_on_admin&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_attempts_allowed&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_lock_duration_seconds&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;600&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Errors&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;kiran@DESKTOP-LBRMDFD:/etc/ansible/checkpoint$ ansible-playbook hardening.yml -vvvv&lt;BR /&gt;ansible-playbook [core 2.17.14]&lt;BR /&gt;config file = /etc/ansible/checkpoint/ansible.cfg&lt;BR /&gt;configured module search path = ['/home/kiran/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']&lt;BR /&gt;ansible python module location = /home/kiran/.local/lib/python3.10/site-packages/ansible&lt;BR /&gt;ansible collection location = /home/kiran/.ansible/collections:/usr/share/ansible/collections&lt;BR /&gt;executable location = /home/kiran/.local/bin/ansible-playbook&lt;BR /&gt;python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3)&lt;BR /&gt;jinja version = 3.1.3&lt;BR /&gt;libyaml = True&lt;BR /&gt;Using /etc/ansible/checkpoint/ansible.cfg as config file&lt;BR /&gt;setting up inventory plugins&lt;BR /&gt;Loading collection ansible.builtin from&lt;BR /&gt;host_list declined parsing /etc/ansible/checkpoint/hosts as it did not pass its verify_file() method&lt;BR /&gt;script declined parsing /etc/ansible/checkpoint/hosts as it did not pass its verify_file() method&lt;BR /&gt;auto declined parsing /etc/ansible/checkpoint/hosts as it did not pass its verify_file() method&lt;BR /&gt;Parsed /etc/ansible/checkpoint/hosts inventory source with ini plugin&lt;BR /&gt;Loading collection check_point.gaia from /home/kiran/.ansible/collections/ansible_collections/check_point/gaia&lt;BR /&gt;Loading callback plugin default of type stdout, v2.0 from /home/kiran/.local/lib/python3.10/site-packages/ansible/plugins/callback/default.py&lt;BR /&gt;Skipping callback 'default', as we already have a stdout callback.&lt;BR /&gt;Skipping callback 'minimal', as we already have a stdout callback.&lt;BR /&gt;Skipping callback 'oneline', as we already have a stdout callback.&lt;/P&gt;&lt;P&gt;PLAYBOOK: hardening.yml *********************************************************************************************************************************************************************&lt;BR /&gt;Positional arguments: hardening.yml&lt;BR /&gt;verbosity: 4&lt;BR /&gt;connection: ssh&lt;BR /&gt;become_method: sudo&lt;BR /&gt;tags: ('all',)&lt;BR /&gt;inventory: ('/etc/ansible/checkpoint/hosts',)&lt;BR /&gt;forks: 5&lt;BR /&gt;1 plays in hardening.yml&lt;/P&gt;&lt;P&gt;PLAY [Hardening command] ********************************************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;TASK [Change password policy] ***************************************************************************************************************************************************************&lt;BR /&gt;task path: /etc/ansible/checkpoint/hardening.yml:8&lt;BR /&gt;redirecting (type: connection) ansible.builtin.httpapi to ansible.netcommon.httpapi&lt;BR /&gt;Loading collection ansible.netcommon from /home/kiran/.local/lib/python3.10/site-packages/ansible_collections/ansible/netcommon&lt;BR /&gt;Loading collection ansible.utils from /home/kiran/.local/lib/python3.10/site-packages/ansible_collections/ansible/utils&lt;BR /&gt;setting up inventory plugins&lt;BR /&gt;host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;yaml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;ini declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;toml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;[WARNING]: No inventory was parsed, only implicit localhost is available&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; attempting to start connection&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; using connection plugin ansible.netcommon.httpapi&lt;BR /&gt;Found ansible-connection at path /home/kiran/.local/bin/ansible-connection&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; local domain socket does not exist, starting it&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; control socket path is /home/kiran/.ansible/pc/c9bd22817c&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Loading collection ansible.builtin from&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; redirecting (type: connection) ansible.builtin.httpapi to ansible.netcommon.httpapi&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Loading collection ansible.netcommon from /home/kiran/.local/lib/python3.10/site-packages/ansible_collections/ansible/netcommon&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Loading collection ansible.utils from /home/kiran/.local/lib/python3.10/site-packages/ansible_collections/ansible/utils&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Loading collection check_point.gaia from /home/kiran/.ansible/collections/ansible_collections/check_point/gaia&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; setting up inventory plugins&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; yaml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; ini declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; toml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; local domain socket listeners started successfully&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; loaded API plugin ansible_collections.check_point.gaia.plugins.httpapi.checkpoint from path /home/kiran/.ansible/collections/ansible_collections/check_point/gaia/plugins/httpapi/checkpoint.py for platform type check_point.gaia.checkpoint&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Loading collection ansible.builtin from&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; local domain socket path is /home/kiran/.ansible/pc/c9bd22817c&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; ESTABLISH LOCAL CONNECTION FOR USER: kiran&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; EXEC /bin/sh -c '( umask 77 &amp;amp;&amp;amp; mkdir -p "` echo /home/kiran/.ansible/tmp/ansible-local-312649hld3z1u0 `"&amp;amp;&amp;amp; mkdir "` echo /home/kiran/.ansible/tmp/ansible-local-312649hld3z1u0/ansible-tmp-1772278842.9638596-312655-165213546880304 `" &amp;amp;&amp;amp; echo ansible-tmp-1772278842.9638596-312655-165213546880304="` echo /home/kiran/.ansible/tmp/ansible-local-312649hld3z1u0/ansible-tmp-1772278842.9638596-312655-165213546880304 `" ) &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;Using module file /home/kiran/.ansible/collections/ansible_collections/check_point/gaia/plugins/modules/cp_gaia_password_policy.py&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; PUT /home/kiran/.ansible/tmp/ansible-local-312649hld3z1u0/tmph_06ghsq TO /home/kiran/.ansible/tmp/ansible-local-312649hld3z1u0/ansible-tmp-1772278842.9638596-312655-165213546880304/AnsiballZ_cp_gaia_password_policy.py&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; EXEC /bin/sh -c 'chmod u+rwx /home/kiran/.ansible/tmp/ansible-local-312649hld3z1u0/ansible-tmp-1772278842.9638596-312655-165213546880304/ /home/kiran/.ansible/tmp/ansible-local-312649hld3z1u0/ansible-tmp-1772278842.9638596-312655-165213546880304/AnsiballZ_cp_gaia_password_policy.py &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; EXEC /bin/sh -c '/usr/bin/python3 /home/kiran/.ansible/tmp/ansible-local-312649hld3z1u0/ansible-tmp-1772278842.9638596-312655-165213546880304/AnsiballZ_cp_gaia_password_policy.py &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; EXEC /bin/sh -c 'rm -f -r /home/kiran/.ansible/tmp/ansible-local-312649hld3z1u0/ansible-tmp-1772278842.9638596-312655-165213546880304/ &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;fatal: [192.168.17.82]: FAILED! =&amp;gt; {&lt;BR /&gt;"changed": false,&lt;BR /&gt;"invocation": {&lt;BR /&gt;"module_args": {&lt;BR /&gt;"lock_settings": {&lt;BR /&gt;"failed_attempts_settings": {&lt;BR /&gt;"failed_attempts_allowed": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"failed_lock_duration_seconds": 600,&lt;BR /&gt;"failed_lock_enabled": true,&lt;BR /&gt;"failed_lock_enforced_on_admin": true&lt;BR /&gt;},&lt;BR /&gt;"inactivity_settings": {&lt;BR /&gt;"inactivity_threshold_days": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"lock_unused_accounts_enabled": true&lt;BR /&gt;},&lt;BR /&gt;"must_one_time_password_enabled": true,&lt;BR /&gt;"password_expiration_days": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"password_expiration_maximum_days_before_lock": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"password_expiration_warning_days": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"&lt;BR /&gt;},&lt;BR /&gt;"password_history": {&lt;BR /&gt;"check_history_enabled": true,&lt;BR /&gt;"repeated_history_length": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"&lt;BR /&gt;},&lt;BR /&gt;"password_strength": {&lt;BR /&gt;"complexity": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"minimum_length": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"palindrome_check_enabled": true&lt;BR /&gt;},&lt;BR /&gt;"version": null,&lt;BR /&gt;"virtual_system_id": null&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"msg": "Checkpoint device returned error ********00 with message {'code': 'generic_error', 'errors': 'not well-formed (invalid token): line ********4, column 29', 'msg': 'General Exception'}"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;PLAY RECAP **********************************************************************************************************************************************************************************&lt;BR /&gt;192.168.17.82 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 28 Feb 2026 11:41:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272150#M878</guid>
      <dc:creator>Kirankatariya</dc:creator>
      <dc:date>2026-02-28T11:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Checkpoint gaia Password policy through ansible || getting error</title>
      <link>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272155#M879</link>
      <description>&lt;P&gt;The problem is your `password_strength:` parameters. &amp;nbsp;The three keys are indented 1 character too far (3, instead of 2). &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    - name: Change password policy
      check_point.gaia.cp_gaia_password_policy:
        password_strength:
           minimum_length: 12
           complexity: 3
           palindrome_check_enabled: true
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead, it should be:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    - name: Change password policy
      check_point.gaia.cp_gaia_password_policy:
        password_strength:
          minimum_length: 12
          complexity: 3
          palindrome_check_enabled: true
&lt;/LI-CODE&gt;
&lt;P&gt;Bring those the lines one less space. &amp;nbsp;You also shouldn't have an extra line between the parameter sections; bring them all together as one section.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In your inventory file, you don't need the `&lt;SPAN&gt;ansible_httpapi_base_url` parameter, either. &amp;nbsp;If you want to execute the module with a different API version (often for testing, or for version compatibility issues), then use the `version:` parameter on the module. &amp;nbsp;You use any prior API version you'd like, but be aware that prior versions have less parameters and capabilities, so you'll need to adjust as needed for that API version.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Let us know if you need more help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Feb 2026 22:17:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272155#M879</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-02-28T22:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Checkpoint gaia Password policy through ansible || getting error</title>
      <link>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272174#M880</link>
      <description>&lt;P&gt;still i am getting the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt; : &lt;/SPAN&gt;&lt;SPAN&gt;Playbook Hardening&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;hosts&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;mgmt &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;connection&lt;/SPAN&gt;&lt;SPAN&gt; : &lt;/SPAN&gt;&lt;SPAN&gt;httpapi&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;gather_facts&lt;/SPAN&gt;&lt;SPAN&gt; : &lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;tasks&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Change password policy&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;check_point.gaia.cp_gaia_password_policy&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_strength&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;minimum_length&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;complexity&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;palindrome_check_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_history&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;check_history_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;repeated_history_length&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;lock_settings&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;must_one_time_password_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_expiration_days&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;90&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_expiration_warning_days&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_expiration_maximum_days_before_lock&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;inactivity_settings&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;lock_unused_accounts_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;inactivity_threshold_days&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;365&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_attempts_settings&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_lock_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_lock_enforced_on_admin&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_attempts_allowed&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_lock_duration_seconds&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;600&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 01 Mar 2026 17:10:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272174#M880</guid>
      <dc:creator>Kirankatariya</dc:creator>
      <dc:date>2026-03-01T17:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Checkpoint gaia Password policy through ansible || getting error</title>
      <link>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272175#M881</link>
      <description>&lt;P&gt;iran@DESKTOP-LBRMDFD:/etc/ansible/checkpoint$ ansible-playbook --check hardening.yml -vvvv&lt;BR /&gt;ansible-playbook [core 2.17.14]&lt;BR /&gt;config file = /etc/ansible/checkpoint/ansible.cfg&lt;BR /&gt;configured module search path = ['/home/kiran/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']&lt;BR /&gt;ansible python module location = /home/kiran/.local/lib/python3.10/site-packages/ansible&lt;BR /&gt;ansible collection location = /home/kiran/.ansible/collections:/usr/share/ansible/collections&lt;BR /&gt;executable location = /home/kiran/.local/bin/ansible-playbook&lt;BR /&gt;python version = 3.10.12 (main, Jan 26 2026, 14:55:28) [GCC 11.4.0] (/usr/bin/python3)&lt;BR /&gt;jinja version = 3.1.3&lt;BR /&gt;libyaml = True&lt;BR /&gt;Using /etc/ansible/checkpoint/ansible.cfg as config file&lt;BR /&gt;setting up inventory plugins&lt;BR /&gt;Loading collection ansible.builtin from&lt;BR /&gt;host_list declined parsing /etc/ansible/checkpoint/hosts as it did not pass its verify_file() method&lt;BR /&gt;script declined parsing /etc/ansible/checkpoint/hosts as it did not pass its verify_file() method&lt;BR /&gt;auto declined parsing /etc/ansible/checkpoint/hosts as it did not pass its verify_file() method&lt;BR /&gt;Parsed /etc/ansible/checkpoint/hosts inventory source with ini plugin&lt;BR /&gt;Loading collection check_point.gaia from /home/kiran/.ansible/collections/ansible_collections/check_point/gaia&lt;BR /&gt;Loading callback plugin default of type stdout, v2.0 from /home/kiran/.local/lib/python3.10/site-packages/ansible/plugins/callback/default.py&lt;BR /&gt;Skipping callback 'default', as we already have a stdout callback.&lt;BR /&gt;Skipping callback 'minimal', as we already have a stdout callback.&lt;BR /&gt;Skipping callback 'oneline', as we already have a stdout callback.&lt;/P&gt;&lt;P&gt;PLAYBOOK: hardening.yml ***********************************************************************************************************************************&lt;BR /&gt;Positional arguments: hardening.yml&lt;BR /&gt;verbosity: 4&lt;BR /&gt;connection: ssh&lt;BR /&gt;become_method: sudo&lt;BR /&gt;tags: ('all',)&lt;BR /&gt;check: True&lt;BR /&gt;inventory: ('/etc/ansible/checkpoint/hosts',)&lt;BR /&gt;forks: 5&lt;BR /&gt;1 plays in hardening.yml&lt;/P&gt;&lt;P&gt;PLAY [Playbook Hardening] *********************************************************************************************************************************&lt;/P&gt;&lt;P&gt;TASK [Change password policy] *****************************************************************************************************************************&lt;BR /&gt;task path: /etc/ansible/checkpoint/hardening.yml:8&lt;BR /&gt;redirecting (type: connection) ansible.builtin.httpapi to ansible.netcommon.httpapi&lt;BR /&gt;Loading collection ansible.netcommon from /home/kiran/.local/lib/python3.10/site-packages/ansible_collections/ansible/netcommon&lt;BR /&gt;Loading collection ansible.utils from /home/kiran/.local/lib/python3.10/site-packages/ansible_collections/ansible/utils&lt;BR /&gt;setting up inventory plugins&lt;BR /&gt;host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;yaml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;ini declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;toml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;[WARNING]: No inventory was parsed, only implicit localhost is available&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; attempting to start connection&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; using connection plugin ansible.netcommon.httpapi&lt;BR /&gt;Found ansible-connection at path /home/kiran/.local/bin/ansible-connection&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; local domain socket does not exist, starting it&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; control socket path is /home/kiran/.ansible/pc/072ccabe0a&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Loading collection ansible.builtin from&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; redirecting (type: connection) ansible.builtin.httpapi to ansible.netcommon.httpapi&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Loading collection ansible.netcommon from /home/kiran/.local/lib/python3.10/site-packages/ansible_collections/ansible/netcommon&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Loading collection ansible.utils from /home/kiran/.local/lib/python3.10/site-packages/ansible_collections/ansible/utils&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Loading collection check_point.gaia from /home/kiran/.ansible/collections/ansible_collections/check_point/gaia&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; setting up inventory plugins&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; yaml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; ini declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Skipping due to inventory source not existing or not being readable by the current user&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; toml declined parsing /etc/ansible/hosts as it did not pass its verify_file() method&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; local domain socket listeners started successfully&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; loaded API plugin ansible_collections.check_point.gaia.plugins.httpapi.checkpoint from path /home/kiran/.ansible/collections/ansible_collections/check_point/gaia/plugins/httpapi/checkpoint.py for platform type check_point.gaia.checkpoint&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; Loading collection ansible.builtin from&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; local domain socket path is /home/kiran/.ansible/pc/072ccabe0a&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; ESTABLISH LOCAL CONNECTION FOR USER: kiran&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; EXEC /bin/sh -c '( umask 77 &amp;amp;&amp;amp; mkdir -p "` echo /home/kiran/.ansible/tmp/ansible-local-356412n_fgbn4x `"&amp;amp;&amp;amp; mkdir "` echo /home/kiran/.ansible/tmp/ansible-local-356412n_fgbn4x/ansible-tmp-1772385020.2378345-356415-34115409735767 `" &amp;amp;&amp;amp; echo ansible-tmp-1772385020.2378345-356415-34115409735767="` echo /home/kiran/.ansible/tmp/ansible-local-356412n_fgbn4x/ansible-tmp-1772385020.2378345-356415-34115409735767 `" ) &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;Using module file /home/kiran/.ansible/collections/ansible_collections/check_point/gaia/plugins/modules/cp_gaia_password_policy.py&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; PUT /home/kiran/.ansible/tmp/ansible-local-356412n_fgbn4x/tmpm49al_zn TO /home/kiran/.ansible/tmp/ansible-local-356412n_fgbn4x/ansible-tmp-1772385020.2378345-356415-34115409735767/AnsiballZ_cp_gaia_password_policy.py&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; EXEC /bin/sh -c 'chmod u+rwx /home/kiran/.ansible/tmp/ansible-local-356412n_fgbn4x/ansible-tmp-1772385020.2378345-356415-34115409735767/ /home/kiran/.ansible/tmp/ansible-local-356412n_fgbn4x/ansible-tmp-1772385020.2378345-356415-34115409735767/AnsiballZ_cp_gaia_password_policy.py &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; EXEC /bin/sh -c '/usr/bin/python3 /home/kiran/.ansible/tmp/ansible-local-356412n_fgbn4x/ansible-tmp-1772385020.2378345-356415-34115409735767/AnsiballZ_cp_gaia_password_policy.py &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;&amp;lt;192.168.17.82&amp;gt; EXEC /bin/sh -c 'rm -f -r /home/kiran/.ansible/tmp/ansible-local-356412n_fgbn4x/ansible-tmp-1772385020.2378345-356415-34115409735767/ &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&amp;amp; sleep 0'&lt;BR /&gt;fatal: [192.168.17.82]: FAILED! =&amp;gt; {&lt;BR /&gt;"changed": false,&lt;BR /&gt;"invocation": {&lt;BR /&gt;"module_args": {&lt;BR /&gt;"lock_settings": {&lt;BR /&gt;"failed_attempts_settings": {&lt;BR /&gt;"failed_attempts_allowed": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"failed_lock_duration_seconds": 600,&lt;BR /&gt;"failed_lock_enabled": true,&lt;BR /&gt;"failed_lock_enforced_on_admin": true&lt;BR /&gt;},&lt;BR /&gt;"inactivity_settings": {&lt;BR /&gt;"inactivity_threshold_days": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"lock_unused_accounts_enabled": true&lt;BR /&gt;},&lt;BR /&gt;"must_one_time_password_enabled": true,&lt;BR /&gt;"password_expiration_days": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"password_expiration_maximum_days_before_lock": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"password_expiration_warning_days": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"&lt;BR /&gt;},&lt;BR /&gt;"password_history": {&lt;BR /&gt;"check_history_enabled": true,&lt;BR /&gt;"repeated_history_length": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"&lt;BR /&gt;},&lt;BR /&gt;"password_strength": {&lt;BR /&gt;"complexity": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"minimum_length": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",&lt;BR /&gt;"palindrome_check_enabled": true&lt;BR /&gt;},&lt;BR /&gt;"version": null,&lt;BR /&gt;"virtual_system_id": null&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"msg": "Checkpoint device returned error ********00 with message {'code': 'generic_error', 'errors': 'not well-formed (invalid token): line ********4, column 29', 'msg': 'General Exception'}"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;PLAY RECAP ************************************************************************************************************************************************&lt;BR /&gt;192.168.17.82 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0&lt;/P&gt;&lt;P&gt;kiran@DESKTOP-LBRMDFD:/etc/ansible/checkpoint$&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2026 17:11:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272175#M881</guid>
      <dc:creator>Kirankatariya</dc:creator>
      <dc:date>2026-03-01T17:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Checkpoint gaia Password policy through ansible || getting error</title>
      <link>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272300#M882</link>
      <description>&lt;P&gt;Oh, I see your error for real now. &amp;nbsp;It's your "connection" line. &amp;nbsp;You have a space after "connection" and before the colon:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;  connection : httpapi
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Remove the extra space and that will fix it. &amp;nbsp;Another thing to note: Be careful after run this task. &amp;nbsp;If you have any existing users created, they will be subject to this policy immediately, including the 'admin' user. &amp;nbsp;If you have any other tasks to run in this playbook, they may fail because you are enforcing this policy on the 'admin' user as well:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;            failed_lock_enforced_on_admin: true
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Be sure you understand the effects this policy will have. &amp;nbsp;If you lock out your user, then you will need to SSH to the host (or login via Gaia Portal) and you'll be prompted to change the password immediately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2026 22:06:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272300#M882</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-03-02T22:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Checkpoint gaia Password policy through ansible || getting error</title>
      <link>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272793#M883</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/694"&gt;@Duane_Toler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i corrected the same still i am getting the error .&lt;/P&gt;&lt;P&gt;can you try attempting the code in your lab and hep me with the resolutions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Playbook Hardening&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;hosts&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;mgmt &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;connection&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;httpapi&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;gather_facts&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;tasks&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Change password policy&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;check_point.gaia.cp_gaia_password_policy&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;lock_settings&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;must_one_time_password_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_expiration_days&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;90&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_expiration_warning_days&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_expiration_maximum_days_before_lock&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;inactivity_settings&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;lock_unused_accounts_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;inactivity_threshold_days&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;365&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_attempts_settings&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_lock_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_attempts_allowed&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;failed_lock_duration_seconds&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;600&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_history&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;check_history_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;repeated_history_length&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;password_strength&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;minimum_length&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;complexity&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;palindrome_check_enabled&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;P&gt;kiran@DESKTOP-LBRMDFD:/etc/ansible/checkpoint$ ansible-playbook hardening.yml&lt;/P&gt;&lt;P&gt;PLAY [Playbook Hardening] *************************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;TASK [Change password policy] *********************************************************************************************************************************************&lt;BR /&gt;[WARNING]: No inventory was parsed, only implicit localhost is available&lt;BR /&gt;fatal: [192.168.17.82]: FAILED! =&amp;gt; {"changed": false, "msg": "Checkpoint device returned error ********00 with message {'code': 'generic_error', 'errors': 'not well-formed (invalid token): line ********4, column 29', 'msg': 'General Exception'}"}&lt;/P&gt;&lt;P&gt;PLAY RECAP ****************************************************************************************************************************************************************&lt;BR /&gt;192.168.17.82 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0&lt;/P&gt;&lt;P&gt;kiran@DESKTOP-LBRMDFD:/etc/ansible/checkpoint$&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 08 Mar 2026 10:55:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272793#M883</guid>
      <dc:creator>Kirankatariya</dc:creator>
      <dc:date>2026-03-08T10:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Checkpoint gaia Password policy through ansible || getting error</title>
      <link>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272896#M884</link>
      <description>&lt;P&gt;In your output with the failure message, are you obscuring any of that text with the "****" characters? &amp;nbsp;That shouldn't be sensitive information, but if you think it is, you can send me a private message with the extra details. &amp;nbsp;The error line still says line 4 column 29, but your line 4 does not have that many characters. &amp;nbsp;Is this the only play in your playbook?&lt;/P&gt;
&lt;P&gt;I ran &lt;FONT face="andale mono,times"&gt;yamllint&lt;/FONT&gt;&amp;nbsp;and &lt;FONT face="andale mono,times"&gt;ansible-lint&lt;/FONT&gt;&amp;nbsp;on your example, and the formatting now passes cleanly with no errors. &amp;nbsp;You must have something else configured that is not shown here. &amp;nbsp;Feel free to send more details in the private message if you think that's necessary.&lt;/P&gt;
&lt;P&gt;As requested, I did run your playbook against a lab host using my Docker collection. &amp;nbsp;I used your Ansible version (2.17) with Python 3.11 (I don't have an image built for 3.10, but I can make one if necessary). &amp;nbsp;I used the Check Point Gaia module collection version 6.0.0, but I can use several other versions. The playbook ran successfully.&lt;/P&gt;
&lt;DIV id="tinyMceEditor_d6f26e8244161Duane_Toler_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-03-09 at 2.30.37 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/33644iC62CA70B86569828/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-03-09 at 2.30.37 PM.png" alt="Screenshot 2026-03-09 at 2.30.37 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I obscured some irrelevant status info that my script emits, which isn't relevant for this exercise. &amp;nbsp;My script at the top runs against my Docker host, checks out a new git branch I named&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="andale mono,times"&gt;kiran/gaia-password-policy&lt;FONT face="arial,helvetica,sans-serif"&gt;,&amp;nbsp;runs the Docker image for ansible-2.17-python-3.11, loads the Ansible collection named check_point.gaia, and executes the playbook in the specified path and name, with the lab &lt;FONT face="andale mono,times"&gt;testing&lt;/FONT&gt;&amp;nbsp;inventory hosts.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I also ran with the Check Point Gaia collection version 7.0.0 and it also ran successfully.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Your playbook (but I had to add my own authentication variables; you have these in your own inventory already):&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-03-09 at 2.50.38 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/33645i3F542A59F3377027/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-03-09 at 2.50.38 PM.png" alt="Screenshot 2026-03-09 at 2.50.38 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 18:52:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Setting-Checkpoint-gaia-Password-policy-through-ansible-getting/m-p/272896#M884</guid>
      <dc:creator>Duane_Toler</dc:creator>
      <dc:date>2026-03-09T18:52:06Z</dc:date>
    </item>
  </channel>
</rss>

