From fa0b08be19b1da17278869e3de7f5a3b34a5de6a Mon Sep 17 00:00:00 2001 From: Ulf Tigerstedt Date: Wed, 25 Oct 2017 19:56:08 +0300 Subject: [PATCH 1/2] ansible 2.4 preparation --- meta/main.yml | 2 +- tasks/main.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index bc037e0..f103de5 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index 99327a3..6d846f8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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) @@ -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 From 44ab5b21b1ff4bdd2e7eaa5b40172024eb83635e Mon Sep 17 00:00:00 2001 From: Ulf Tigerstedt Date: Wed, 25 Oct 2017 20:03:44 +0300 Subject: [PATCH 2/2] Added support for ubuntu 17.04 --- vars/ubuntu-17.04.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 vars/ubuntu-17.04.yml diff --git a/vars/ubuntu-17.04.yml b/vars/ubuntu-17.04.yml new file mode 100644 index 0000000..356467f --- /dev/null +++ b/vars/ubuntu-17.04.yml @@ -0,0 +1,4 @@ +--- +cuda_repo_subfolder: ubuntu1704 + +# vim:ft=ansible: