Hello everyone,
I would want to have the session name appear in the audit logs when pushing or publishing changes with the web-services API via Ansible.
Basically, what is done automatically when publishing in SmartConsole (see Capture.PNG).
However, session name is not set when using the session-name parameter in the login command (see Capture2.PNG), and therefore not in the logs neither (Capture3.PNG)
This is the login task I use (I want the session to use the ansible user and date, as well as a change ticket that the user will be prompted for):
- name: login into SmartConsole API
check_point_mgmt:
command: login
parameters:
username: "{{ cpuser }}"
password: "{{ cppassword }}"
management: "{{ cpserver }}"
session-name: "{{ change_ticket | upper }} - {{ ansible_user_id | lower}} - {{ ansible_date_time.date }}"
fingerprint: "{{ cpfingerprint }}"
register: login_response
The session-name parameter is not rejected and the user is correctly logged in. It doesn't seem that the publish command permits to set a session name.
My management station is 80.10 and Ansible is in version 2.7.10.
What am I doing wrong? Or is it some kind of bug? I did not find doc about this outside of
I don't have the issue I use the mgmt_cli tool in expert mode (Capture4.PNG).
Any help will be appreciated, thank you in advance.