Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: us_asa
- connection: local
- gather_facts: false
- tasks:
- - name: change config
- asa_config:
- auth_pass: "{{ ansible_ssh_password }}"
- username: "{{ ansible_ssh_user }}"
- password: "{{ ansible_ssh_password }}"
- authorize: yes
- timeout: 45
- lines:
- - network-object host 1.2.3.4
- - network-object host 2.3.2.3
- parents: ['object-group network BAD_IPs']
- ---
- - hosts: us_asa
- connection: local
- gather_facts: false
- tasks:
- - name: change config
- asa_config:
- auth_pass: "{{ ansible_ssh_password }}"
- username: "{{ ansible_ssh_user }}"
- password: "{{ ansible_ssh_password }}"
- authorize: yes
- timeout: 45
- lines:
- - network-object host 1.2.3.4
- - network-object host 2.3.2.3
- parents: ['object-group network BAD_IPs']
- - network-object host 4.4.4.4
- parents: ['object-group network Good_IPs']
- parents: ['object-group network BAD_IPs']
- - network-object host 4.4.4.4
- ^ here
Add Comment
Please, Sign In to add comment