--- # These are the temporary tasks needed on various machines before classroom build is finished. # # TODO: Copy clair-updates.gz to registry.ocp4.example.com:/local # # XXX DONE XXX- name: Fixes required on utility VM. # XXX DONE XXX hosts: utility.lab.example.com # XXX DONE XXX become: yes # XXX DONE XXX gather_subset: min # XXX DONE XXX tasks: # XXX DONE XXX - name: Ensure idm is in ocp4.example.com zone. # XXX DONE XXX ansible.builtin.lineinfile: # XXX DONE XXX path: /var/named/ocp4.example.com.db # XXX DONE XXX regex: '^idm[[:space:]]' # XXX DONE XXX insertafter: '.*IN NS dns\.ocp4\.example\.com\.$' # XXX DONE XXX line: 'idm IN A 192.168.50.40' # XXX DONE XXX notify: # XXX DONE XXX - fix forward zone serial # XXX DONE XXX - restart named # XXX DONE XXX # XXX DONE XXX - name: Ensure idm is in ocp4.example.com reverse zone. # XXX DONE XXX ansible.builtin.lineinfile: # XXX DONE XXX path: /var/named/ocp4.example.com.reverse.db # XXX DONE XXX regex: '^40[[:space:]]' # XXX DONE XXX insertafter: '.*IN NS dns\.ocp4\.example\.com\.$' # XXX DONE XXX line: '40 IN PTR idm.ocp4.example.com.' # XXX DONE XXX notify: # XXX DONE XXX - fix reverse zone serial # XXX DONE XXX - restart named # XXX DONE XXX # XXX DONE XXX - name: Ensure utility allows forwarding traffic from external to public/trusted zones. # XXX DONE XXX ansible.builtin.copy: # XXX DONE XXX dest: /etc/firewalld/policies/fwd-stud-to-ocp.xml # XXX DONE XXX mode: 0644 # XXX DONE XXX owner: root # XXX DONE XXX group: root # XXX DONE XXX content: | # XXX DONE XXX # XXX DONE XXX # XXX DONE XXX # XXX DONE XXX # XXX DONE XXX # XXX DONE XXX # XXX DONE XXX notify: # XXX DONE XXX - reload utility firewalld # XXX DONE XXX handlers: # XXX DONE XXX - name: reload utility firewalld # XXX DONE XXX ansible.builtin.service: # XXX DONE XXX name: firewalld # XXX DONE XXX state: reloaded # XXX DONE XXX # XXX DONE XXX - name: fix forward zone serial # XXX DONE XXX ansible.builtin.lineinfile: # XXX DONE XXX path: /var/named/ocp4.example.com.db # XXX DONE XXX regex: '.*; serial$' # XXX DONE XXX line: " {{ ansible_facts['date_time']['year'] }}{{ ansible_facts['date_time']['month'] }}{{ ansible_facts['date_time']['day'] }}00" # XXX DONE XXX # XXX DONE XXX - name: fix reverse zone serial # XXX DONE XXX ansible.builtin.lineinfile: # XXX DONE XXX path: /var/named/ocp4.example.com.reverse.db # XXX DONE XXX regex: '.*; serial$' # XXX DONE XXX line: " {{ ansible_facts['date_time']['year'] }}{{ ansible_facts['date_time']['month'] }}{{ ansible_facts['date_time']['day'] }}00" # XXX DONE XXX # XXX DONE XXX - name: restart named # XXX DONE XXX ansible.builtin.service: # XXX DONE XXX name: named # XXX DONE XXX state: restarted ...