Skip to content

Commit

Permalink
Merge pull request #15 from CSCfi/ansible24
Browse files Browse the repository at this point in the history
ansible 2.4 preparation
  • Loading branch information
tiggi authored Nov 1, 2017
2 parents 59965fb + 44ab5b2 commit f82a4fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ galaxy_info:
# - Apache
# - CC-BY
license: MIT
min_ansible_version: 2.2
min_ansible_version: 2.4
#
# Below are all platforms currently available. Just uncomment
# the ones that apply to your role. If you don't see your
Expand Down
6 changes: 3 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
- "{{ ansible_os_family|lower }}.yml"

- block:
- include: configure_yum.yml
- include_tasks: configure_yum.yml
when: ansible_pkg_mgr == 'yum'

- include: configure_apt.yml
- include_tasks: configure_apt.yml
when: ansible_pkg_mgr == 'apt'

- name: Install CUDA and related packages (1.5-2GB download, also restarts if cuda_restart_node_on_install is set to True)
Expand All @@ -32,7 +32,7 @@
mode: 0755
when: cuda_bash_profile

- include: cuda_init.yml
- include_tasks: cuda_init.yml
when: cuda_init == True

# This is here because if we in the same playbook try to start slurmd without
Expand Down
4 changes: 4 additions & 0 deletions vars/ubuntu-17.04.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
cuda_repo_subfolder: ubuntu1704

# vim:ft=ansible:

0 comments on commit f82a4fe

Please sign in to comment.