]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Install collectl without recommended packages 613/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 3 Mar 2021 20:46:03 +0000 (15:46 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 3 Mar 2021 20:46:03 +0000 (15:46 -0500)
collectl has a bunch of Gnome Desktop Environment packages that are recommended.  So on Ubuntu 20.04 at least, a desktop environment was getting installed and would eventually go to sleep.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/README.rst
roles/testnode/tasks/apt/packages.yml
roles/testnode/vars/ubuntu.yml

index 9dc7d351eda99d09f55ca4f336b23644ad0a799f..857bf96a488b5f7f093c9430b5e1d509f0a9abe2 100644 (file)
@@ -167,6 +167,10 @@ A list of packages to upgrade. These lists are defined in the vars files in ``va
 
     packages_to_upgrade: []
 
+A list of packages to install via ``apt install --no-install-recommends``::
+
+    no_recommended_packages: []
+
 A list of packages to install via pip. These lists are defined in the vars files in ``vars/``::
 
     pip_packages_to_install: []
index 662a892007232c08904db25e612309f519c75338..97e51e33bbd71fa5cd29b0089f22edf93fa08e84 100644 (file)
     state: present
     force: yes
   when: ansible_architecture != "aarch64"
+
+- name: Install packages with --no-install-recommends
+  apt:
+    name: "{{ no_recommended_packages|list }}"
+    state: present
+    install_recommends: no
+  when: no_recommended_packages|length > 0
index e864b9182349a1878de368d8870234ffafb8e88f..31c70fc2eecdde6ade387450f400817e42f037dd 100644 (file)
@@ -53,7 +53,6 @@ common_packages:
   ###
   - vim
   - pdsh
-  - collectl
   # for blktrace and seekwatcher
   - blktrace
   ###
@@ -94,6 +93,9 @@ packages_to_upgrade:
 non_aarch64_packages_to_upgrade:
   - libapache2-mod-fastcgi
 
+no_recommended_packages:
+  - collectl
+
 packages_to_remove:
    # openmpi-common conflicts with mpitch stuff
   - openmpi-common