records.yaml 725 B

12345678910111213141516171819202122232425262728
  1. ---
  2. - name: "Building Records"
  3. set_fact:
  4. dns_records_add:
  5. - view: private
  6. zone: example.com
  7. entries:
  8. - type: A
  9. hostname: master1.example.com
  10. ip: 172.16.15.94
  11. - type: A
  12. hostname: node1.example.com
  13. ip: 172.16.15.86
  14. - type: A
  15. hostname: node2.example.com
  16. ip: 172.16.15.87
  17. - view: public
  18. zone: example.com
  19. entries:
  20. - type: A
  21. hostname: master1.example.com
  22. ip: 10.3.10.116
  23. - type: A
  24. hostname: node1.example.com
  25. ip: 10.3.11.46
  26. - type: A
  27. hostname: node2.example.com
  28. ip: 10.3.12.6