OSC / ood-ansible

An ansible role for Open Ondemand
MIT License
30 stars 31 forks source link

Extend role to allow deployment of assets into `/var/www/ood/public/` #241

Open mikej888 opened 8 months ago

mikej888 commented 8 months ago

Environment:

Extend role to allow deployment of assets into /var/www/ood/public/. For example, site-specific logos.

This can be done in a playbook, for example

  vars:
    # Assets directory whose contents are to be copied to
    # /var/www/ood/public/.
    # local_public_assets: files/public
    # Templates directory.
    local_templates: "templates/"
  tasks:
    - name: Copy 'public' assets
      ansible.builtin.copy:
        src: "{{ item }}"
        dest: "/var/www/ood/public"
        owner: root
        group: root
      with_fileglob: "{{ local_public_assets }}/*"
      when: local_public_assets is defined

For role completeness, it would be useful if it could be done via the role. Thanks,

johrstrom commented 8 months ago

For role completeness, it would be useful if it could be done via the role. Thanks,

Yea I agree - thanks for the ticket!