---
-
  name: "Block to Allow Loading of Variables without running task"
  when: run_tasks
  block:
    -
      name: "Placing templated notes.ini into {{ service_home_dir }}"
      become: true
      ansible.builtin.template:
        dest: "{{ service_home_dir }}/notes.ini"
        owner: "{{ service_user }}"
        group: "{{ service_group }}"
        mode: "0744"
        src: notes.ini.j2
    
    -
      name: "Exporting Domino LD_LIBRARY_PATH"
      ansible.builtin.lineinfile:
        mode: '0644'
        path: "{{ service_home_dir }}/.bash_profile"
        create: true
        line: "export LD_LIBRARY_PATH={{ domino_install_dir }}/"
        insertbefore: EOF
    
    -
      name: "Copying templates necessary for standalone Notes Java app"
      ansible.builtin.copy:
        mode: '0644'
        src: "{{ item }}"
        dest: "{{ service_home_dir }}"
        remote_src: true
        owner: "{{ service_user }}"
      with_items:
        - "{{ domino_home_dir }}/pernames.ntf"
