Changeset - 922ac53a02a7
[Not reviewed]
0 4 0
Branko Majic (branko) - 3 months ago 2024-02-25 21:27:36
branko@majic.rs
MAR-192: Drop the Python 2.7-specific packages from installation:

- These are leftovers from previous work for dropping the Python 2.7
support.
4 files changed with 0 insertions and 4 deletions:
0 comments (0 inline, 0 general)
roles/common/molecule/default/tests/test_default.py
Show inline comments
 
@@ -116,13 +116,12 @@ def test_installed_packages(host):
 
    """
 

	
 
    assert host.package('sudo').is_installed
 
    assert host.package('ssl-cert').is_installed
 
    assert host.package('ferm').is_installed
 
    assert host.package('apticron').is_installed
 
    assert host.package('python-setuptools').is_installed
 
    assert host.package('python3-setuptools').is_installed
 
    assert host.package('virtualenv').is_installed
 

	
 

	
 
def test_root_remote_login_disabled(host):
 
    """
roles/common/tasks/main.yml
Show inline comments
 
@@ -320,13 +320,12 @@
 
  changed_when: false
 

	
 
# Implementation for checking pip requirements files via via pip-tools.
 
- name: Install packages required for running pip requirements checks
 
  apt:
 
    name:
 
      - python-setuptools
 
      - python3-setuptools
 
      - virtualenv
 
    state: present
 

	
 
- name: Create dedicated group for user running pip requirements checks
 
  group:
roles/web_server/molecule/default/tests/test_default.py
Show inline comments
 
@@ -9,13 +9,12 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
 
def test_installed_packages(host, php_info):
 
    """
 
    Tests if the required packages have been installed.
 
    """
 

	
 
    assert host.package('nginx').is_installed
 
    assert host.package('python-setuptools').is_installed
 
    assert host.package('python3-setuptools').is_installed
 
    assert host.package('virtualenv').is_installed
 
    assert host.package('virtualenvwrapper').is_installed
 
    assert host.package(php_info.fpm_package).is_installed
 

	
 

	
roles/web_server/tasks/main.yml
Show inline comments
 
@@ -137,13 +137,12 @@
 
    enabled: true
 
    state: started
 

	
 
- name: Install base packages for Python web applications
 
  apt:
 
    name:
 
      - python-setuptools
 
      - python3-setuptools
 
      - virtualenv
 
      - virtualenvwrapper
 
    state: present
 

	
 
- name: Install base packages for PHP web applications
0 comments (0 inline, 0 general)