Skip to content
Permalink
Browse files

Use list of packages, not (slow!) loop

  • Loading branch information...
root authored and riccardomurri committed Mar 5, 2019
1 parent 6e2b6eb commit b704938a35670451bb3181839a706ec81759e898
@@ -110,26 +110,28 @@

- name: Ensure additional packages are installed
apt:
name: '{{item}}'
name: '{{packages}}'
state: '{{ pkg_install_state }}'
allow_unauthenticated: '{{ not insecure_https_downloads|default("no")|bool }}'
loop:
- apt-transport-https
# these are required by Ansible's `debconf` module
- debconf
- debconf-utils
vars:
packages:
- apt-transport-https
# these are required by Ansible's `debconf` module
- debconf
- debconf-utils


# Apparently some systemd commands (e.g., `hostnamectl` -- possibly others)
# *require* D-Bus but the Debian 8 cloud VM image does not have it installed
# (see issues #392, #393). So, ensure it is installed.
- name: Ensure additional packages are installed (Debian 8)
apt:
name: '{{item}}'
name: '{{packages}}'
state: '{{ pkg_install_state }}'
allow_unauthenticated: '{{ not insecure_https_downloads|default("no")|bool }}'
loop:
- dbus
vars:
packages:
- dbus
when: 'is_debian_8_or_later'


@@ -37,6 +37,8 @@
name: '*'
state: latest
update_cache: yes
# Very slow, especially with dkms/nvidia, and not useful for first boot.
exclude: "kernel*"


- name: Provide workaround for http://www.oddjack.com/?certs=ansible/ansible-modules-core/issues/4472
@@ -12,32 +12,33 @@

- name: Install commonly needed software (Debian-family)
package:
name: '{{item}}'
name: '{{packages}}'
state: '{{ pkg_install_state }}'
loop:
# compression and archivers
- bzip2
- cpio
- gzip
- lzip
- p7zip-full
- tar
- unzip
- xz-utils
- zip
# version control systems
- git
- mercurial
- subversion
# basic build environment
- g++
- gcc
- libc6-dev
- make
# other "standard" utilities
- kexec-tools
- m4
- rsync
- screen
- tmux
- vim
vars:
packages:
# compression and archivers
- bzip2
- cpio
- gzip
- lzip
- p7zip-full
- tar
- unzip
- xz-utils
- zip
# version control systems
- git
- mercurial
- subversion
# basic build environment
- g++
- gcc
- libc6-dev
- make
# other "standard" utilities
- kexec-tools
- m4
- rsync
- screen
- tmux
- vim
@@ -12,33 +12,35 @@

- name: Install commonly needed software (RHEL-family)
package:
name: '{{item}}'
name: "{{ packages }}"
state: '{{ pkg_install_state }}'
loop:
# compression and archivers
- bzip2
- cpio
- gzip
- lzip
- p7zip
- tar
- unzip
- xz
- zip
# version control systems
- git
- mercurial
- subversion
# basic build environment
- gcc
- gcc-c++
- gcc-gfortran
- glibc-devel
- make
# other "standard" utilities
- kexec-tools
- m4
- rsync
- screen
- tmux
- vim
vars:
packages:
# compression and archivers
- bzip2
- cpio
- gzip
- lzip
- p7zip
- tar
- unzip
- xz
- zip
# version control systems
- git
- mercurial
- subversion
# basic build environment
- gcc
- gcc-c++
- gcc-gfortran
- glibc-devel
- make
# other "standard" utilities
- bash-completion
- kexec-tools
- m4
- rsync
- screen
- tmux
- vim
@@ -12,9 +12,8 @@

- name: Install GridEngine execd packages
package:
pkg: '{{item}}'
name: '{{gridengine_execd_packages}}'
state: '{{ pkg_install_state }}'
loop: '{{gridengine_execd_packages}}'


# - name: deploy execd installer config (RHEL/CentOS)
@@ -15,9 +15,8 @@
- gridengine
- gridengine-master
package:
pkg: '{{item}}'
name: '{{gridengine_master_packages}}'
state: '{{ pkg_install_state }}'
loop: '{{gridengine_master_packages}}'


- name: deploy qmaster installer config (RHEL/CentOS)
@@ -7,9 +7,8 @@

- name: Install common HPC software
package:
name: '{{item}}'
name: '{{hpc_common_packages}}'
state: '{{ pkg_install_state }}'
loop: '{{hpc_common_packages}}'


- name: Ensure modulefiles directories exist

0 comments on commit b704938

Please sign in to comment.
You can’t perform that action at this time.