Skip to content
Snippets Groups Projects
Select Git revision
  • 77747ccb1b34dab01d86c47d5c5c70666ff1a728
  • master default protected
2 results

configure_persistent_journald_logging.yml

Blame
  • install_subapp.yml 7.58 KiB
    ---
    - name: Berechtigungen für Blockdevice ".subapp" korrigieren
      file:
        path: "/home/{{ vault_subapp_user }}/.subapp/"
        state: directory
        owner: "{{ vault_subapp_user }}"
        group: "{{ vault_subapp_group }}"
        mode: "0750"
    
    - name: configure PIDfile directory creation
      template:
        src: "usr/lib/tmpfiles.d/subapp-pid-dir.conf.j2"
        dest: "/usr/lib/tmpfiles.d/subapp-pid-dir.conf"
        owner: "root"
        group: "root"
        mode: "0644"
      notify: create PIDfiles
    
    # erst nach der Erstellung der User/Gruppen durchführen!
    - name: update Sources
      apt:
        update_cache: "yes"
    - name: Optionale Pakete für schnellere BagIt Verarbeitung installieren
      apt:
        name:
          - 'libio-async-perl' # offical Debian package
          - 'libio-aio-perl' # offical Debian package
          - 'libparallel-parallel-map-perl' # packaged by SLUBArchiv.digital from CPAN
          - 'libparallel-datapipe-perl' # packaged by SLUBArchiv.digital from CPAN
    - name: Submission Application installieren
      apt:
        name: "submissionapplication4rosetta"
        state: present
        allow_unauthenticated: "true"
    
    - name: Systemd-Unitfiles installieren (Templates)
      template:
        src: "etc/systemd/user/{{ item }}.j2"
        dest: "/etc/systemd/user/{{ item }}"
        owner: "{{ vault_subapp_vars.files.subapp.owner }}"
        group: "{{ vault_subapp_vars.files.subapp.group }}"
        mode: "{{ vault_subapp_vars.files.subapp.mode }}"
      loop:
        - "webservice_status_SLUBarchiv.service"
        - "subapp.service"
      tags: [systemd]
    
    - name: Systemd-Unitfiles installieren (Files)
      copy:
        src: "etc/systemd/user/{{ item }}"
        dest: "/etc/systemd/user/{{ item }}"
      loop:
        - "chmod_sip_uploads.service"
        - "chown_dip_access.service"
      tags: [systemd]
    
    # Unitfiles neu einlesen, Services sofort starten & automatisch bei jedem Booten starten
    - name: Systemd daemon reload
      systemd:
        daemon-reload: "true"
      tags: [systemd]
    
    - name: Services automatisch bei jedem Booten starten
      command: "systemctl enable /etc/systemd/user/{{ item }}"        # noqa 301 303
      loop:
        - "webservice_status_SLUBarchiv.service"
        - "subapp.service"
        - "chmod_sip_uploads.service"
        - "chown_dip_access.service"
      tags: [systemd]