10-lab-tmp-fixes.yml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ---
  2. # These are the temporary tasks needed on various machines before classroom build is finished.
  3. #
  4. # TODO: Copy clair-updates.gz to registry.ocp4.example.com:/local
  5. #
  6. # XXX DONE XXX- name: Fixes required on utility VM.
  7. # XXX DONE XXX hosts: utility.lab.example.com
  8. # XXX DONE XXX become: yes
  9. # XXX DONE XXX gather_subset: min
  10. # XXX DONE XXX tasks:
  11. # XXX DONE XXX - name: Ensure idm is in ocp4.example.com zone.
  12. # XXX DONE XXX ansible.builtin.lineinfile:
  13. # XXX DONE XXX path: /var/named/ocp4.example.com.db
  14. # XXX DONE XXX regex: '^idm[[:space:]]'
  15. # XXX DONE XXX insertafter: '.*IN NS dns\.ocp4\.example\.com\.$'
  16. # XXX DONE XXX line: 'idm IN A 192.168.50.40'
  17. # XXX DONE XXX notify:
  18. # XXX DONE XXX - fix forward zone serial
  19. # XXX DONE XXX - restart named
  20. # XXX DONE XXX
  21. # XXX DONE XXX - name: Ensure idm is in ocp4.example.com reverse zone.
  22. # XXX DONE XXX ansible.builtin.lineinfile:
  23. # XXX DONE XXX path: /var/named/ocp4.example.com.reverse.db
  24. # XXX DONE XXX regex: '^40[[:space:]]'
  25. # XXX DONE XXX insertafter: '.*IN NS dns\.ocp4\.example\.com\.$'
  26. # XXX DONE XXX line: '40 IN PTR idm.ocp4.example.com.'
  27. # XXX DONE XXX notify:
  28. # XXX DONE XXX - fix reverse zone serial
  29. # XXX DONE XXX - restart named
  30. # XXX DONE XXX
  31. # XXX DONE XXX - name: Ensure utility allows forwarding traffic from external to public/trusted zones.
  32. # XXX DONE XXX ansible.builtin.copy:
  33. # XXX DONE XXX dest: /etc/firewalld/policies/fwd-stud-to-ocp.xml
  34. # XXX DONE XXX mode: 0644
  35. # XXX DONE XXX owner: root
  36. # XXX DONE XXX group: root
  37. # XXX DONE XXX content: |
  38. # XXX DONE XXX <?xml version="1.0" encoding="utf-8"?>
  39. # XXX DONE XXX <policy target="ACCEPT">
  40. # XXX DONE XXX <ingress-zone name="external"/>
  41. # XXX DONE XXX <egress-zone name="public"/>
  42. # XXX DONE XXX <egress-zone name="trusted"/>
  43. # XXX DONE XXX </policy>
  44. # XXX DONE XXX notify:
  45. # XXX DONE XXX - reload utility firewalld
  46. # XXX DONE XXX handlers:
  47. # XXX DONE XXX - name: reload utility firewalld
  48. # XXX DONE XXX ansible.builtin.service:
  49. # XXX DONE XXX name: firewalld
  50. # XXX DONE XXX state: reloaded
  51. # XXX DONE XXX
  52. # XXX DONE XXX - name: fix forward zone serial
  53. # XXX DONE XXX ansible.builtin.lineinfile:
  54. # XXX DONE XXX path: /var/named/ocp4.example.com.db
  55. # XXX DONE XXX regex: '.*; serial$'
  56. # XXX DONE XXX line: " {{ ansible_facts['date_time']['year'] }}{{ ansible_facts['date_time']['month'] }}{{ ansible_facts['date_time']['day'] }}00"
  57. # XXX DONE XXX
  58. # XXX DONE XXX - name: fix reverse zone serial
  59. # XXX DONE XXX ansible.builtin.lineinfile:
  60. # XXX DONE XXX path: /var/named/ocp4.example.com.reverse.db
  61. # XXX DONE XXX regex: '.*; serial$'
  62. # XXX DONE XXX line: " {{ ansible_facts['date_time']['year'] }}{{ ansible_facts['date_time']['month'] }}{{ ansible_facts['date_time']['day'] }}00"
  63. # XXX DONE XXX
  64. # XXX DONE XXX - name: restart named
  65. # XXX DONE XXX ansible.builtin.service:
  66. # XXX DONE XXX name: named
  67. # XXX DONE XXX state: restarted
  68. ...