Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
ukohae
Contributor

Multiple Domains with Different Policy Package

Jump to solution

Hi,

I am trying to use Ansible to Configure Multiple domains on my Checkpoint and apply several(different) verification policies.

For example: 

playbook.yml

- name: verify-policy
  cp_mgmt_verify_policy:
    policy_package: A
policy_package: #Contains A,B,C,D,E,F,G,H   policy package

 

vars:
ansible_checkpoint_domain:#"Domain Z", Domain Y, Domain X, Domain W

Question:  How can I write my playbook and inventory such that each domain (W, X , Y , Z) can communicate interchangeably with any of the policy_package?

0 Kudos
1 Solution

Accepted Solutions
PhoneBoy
Admin
Admin

I assume you'd use loops or something similar, which would execute the verify-policy action on each item in the list.
See: https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html 

View solution in original post

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

I assume you'd use loops or something similar, which would execute the verify-policy action on each item in the list.
See: https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html 

View solution in original post

0 Kudos