Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mikej888 opened this issue Mar 22, 2024 · 1 comment
Open

Comments

@mikej888
Copy link

mikej888 commented Mar 22, 2024

Environment:

  • Ubuntu 22.04
  • Python 3.11.5
  • Ansible 8.0.0
  • osc.open_ondemand 3.1.4

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
Copy link
Collaborator

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

Yea I agree - thanks for the ticket!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants