Guest User

Untitled

a guest
Jun 11th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. ---
  2. - hosts: sec-checkup-appliance
  3. tasks:
  4. - name: "login"
  5. check_point_mgmt:
  6. command: login
  7. parameters:
  8. username: "{{mgmt_user}}"
  9. password: "{{mgmt_password}}"
  10. management: "{{mgmt_server}}"
  11. fingerprint: "{{fingerprint}}"
  12. register: login_response
  13. - name: "add test host"
  14. check_point_mgmt:
  15. command: add-host
  16. parameters:
  17. name: "test-123abc"
  18. ip-address: "1.1.1.2"
  19. color: "red"
  20. session-data: "{{login_response}}"
  21. - name: "discard"
  22. check_point_mgmt:
  23. command: discard
  24. session-data: "{{login_response}}"
  25. - name: "logout"
  26. check_point_mgmt:
  27. command: logout
  28. session-data: "{{login_response}}"
Add Comment
Please, Sign In to add comment