Skip to content

Commit

Permalink
Debug ansible version
Browse files Browse the repository at this point in the history
As vagrant and src seem to be using different versions.
  • Loading branch information
sverhoeven committed Mar 6, 2024
1 parent d97fa71 commit 7d8d938
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions research-cloud-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
- name: Gather facts for first time

Check failure on line 15 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

fqcn[action-core]

Use FQCN for builtin module actions (setup).

Check failure on line 15 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

fqcn[action-core]

Use FQCN for builtin module actions (setup).
setup:

- name: Ansible version

Check failure on line 18 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

fqcn[action-core]

Use FQCN for builtin module actions (debug).

Check failure on line 18 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

fqcn[action-core]

Use FQCN for builtin module actions (debug).
debug:
var: ansible_version

- name: Set up workers

Check failure on line 22 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

fqcn[action-core]

Use FQCN for builtin module actions (debug).

Check failure on line 22 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

fqcn[action-core]

Use FQCN for builtin module actions (debug).
debug:
var: worker_ip_addresses
Expand Down
12 changes: 10 additions & 2 deletions roles/grader/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,21 @@
become_user: "{{ item }}"
changed_when: true

# TODO remove debugs
- name: Debug path
debug:
var: ansible_env.PATH
- name : Debug bin
debug:
var: conda_environment_bin

- name: Register non_grader_users as nbgrader student
loop: "{{ non_grader_users.stdout_lines | default([]) }}"
command:
cmd: '{{ conda_environment_bin }}/nbgrader db student add {{ item }}'
cmd: "{{ conda_environment_bin }}/nbgrader db student add {{ item }}"
chdir: "/home/{{ grader_user }}/{{ course_id }}"
environment:
# nbgrader calls subcprocess which is not in path by default
# nbgrader calls subprocess which is not in path by default
PATH: "{{ conda_environment_bin }}:{{ ansible_env.PATH }}"
become: true
become_user: "{{ grader_user }}"
Expand Down

0 comments on commit 7d8d938

Please sign in to comment.