Guest User

Untitled

a guest
Dec 15th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. ---
  2. - hosts: us_asa
  3. connection: local
  4. gather_facts: false
  5.  
  6. tasks:
  7. - name: change config
  8. asa_config:
  9. auth_pass: "{{ ansible_ssh_password }}"
  10. username: "{{ ansible_ssh_user }}"
  11. password: "{{ ansible_ssh_password }}"
  12. authorize: yes
  13. timeout: 45
  14. lines:
  15. - network-object host 1.2.3.4
  16. - network-object host 2.3.2.3
  17. parents: ['object-group network BAD_IPs']
  18.  
  19. ---
  20. - hosts: us_asa
  21. connection: local
  22. gather_facts: false
  23.  
  24. tasks:
  25. - name: change config
  26. asa_config:
  27. auth_pass: "{{ ansible_ssh_password }}"
  28. username: "{{ ansible_ssh_user }}"
  29. password: "{{ ansible_ssh_password }}"
  30. authorize: yes
  31. timeout: 45
  32. lines:
  33. - network-object host 1.2.3.4
  34. - network-object host 2.3.2.3
  35. parents: ['object-group network BAD_IPs']
  36. - network-object host 4.4.4.4
  37. parents: ['object-group network Good_IPs']
  38.  
  39. parents: ['object-group network BAD_IPs']
  40. - network-object host 4.4.4.4
  41. ^ here
Add Comment
Please, Sign In to add comment