1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- ---
- # 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 <?xml version="1.0" encoding="utf-8"?>
- # XXX DONE XXX <policy target="ACCEPT">
- # XXX DONE XXX <ingress-zone name="external"/>
- # XXX DONE XXX <egress-zone name="public"/>
- # XXX DONE XXX <egress-zone name="trusted"/>
- # XXX DONE XXX </policy>
- # 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
- ...
|