Skip to content

Commit

Permalink
support non-foreman projects when uploading GPG keys
Browse files Browse the repository at this point in the history
only Foreman uses the weird "releases" folder
  • Loading branch information
evgeni authored and ekohl committed Jun 14, 2024
1 parent 6dbaf29 commit 379ba4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion upload_yum_gpg_public_key.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
become_user: yumrepo
gather_facts: false
vars:
releasedir: "/var/www/vhosts/yum/htdocs/releases"
releasebasedir: "/var/www/vhosts/yum/htdocs"
releasesubdir: "{{ 'releases' if project == 'foreman' else project }}"
releasedir: "{{ releasebasedir }}/{{ releasesubdir }}"
tasks:
- name: "Ensure release directory"
file:
Expand Down

0 comments on commit 379ba4f

Please sign in to comment.