Skip to content

Commit

Permalink
Merge pull request #50 from systemli/schleuder-web-bundle-fixes
Browse files Browse the repository at this point in the history
schleuder-web:  bundle: various fixes
  • Loading branch information
nevart authored May 21, 2024
2 parents 3e4cf73 + 19fe80a commit b959f48
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tasks/schleuder_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@
ansible_ssh_pipelining: True
when: __schleuder_repo_clone.changed # noqa: no-handler

- name: Ensure correct permissions
ansible.builtin.file:
group: "{{ schleuder_schleuder_web_user }}"
path: "{{ schleuder_schleuder_web_path }}"
recurse: true
owner: "{{ schleuder_schleuder_web_user }}"

- name: Set bundle global config options
ansible.builtin.command: "/usr/local/bin/bundle config set --global {{ item }}"
changed_when: false
Expand All @@ -129,9 +136,8 @@
when: __schleuder_repo_clone.changed # noqa: no-handler
with_items:
- "path {{ schleuder_schleuder_web_home }}/.gem"
- "without 'development test'"

- name: Install bundle (when repo changed)
- name: Install bundle
ansible.builtin.command: "/usr/local/bin/bundle install"
changed_when: false
check_mode: no
Expand All @@ -141,7 +147,6 @@
become_user: "{{ schleuder_schleuder_web_user }}"
vars:
ansible_ssh_pipelining: True
when: __schleuder_repo_clone.changed # noqa: no-handler

- name: Check if schleuder-web systemd unit already exists
ansible.builtin.stat:
Expand Down

0 comments on commit b959f48

Please sign in to comment.