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

schleuder-web: bundle: various fixes #50

Merged
merged 3 commits into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading