Install passlib to venv (htpasswd)

The ansible htpasswd module requires [1] passlib, remove unnecessary
system package dependencies.

[1] https://docs.ansible.com/ansible/latest/collections/community/general/htpasswd_module.html#requirements

Change-Id: I23f78e6e70f810ec2d8db5200ba918e3c9dfb224
This commit is contained in:
Erik Berg 2022-10-14 19:01:28 +02:00
parent 770f74ab6f
commit 10caba874b
3 changed files with 10 additions and 9 deletions

View File

@ -31,7 +31,6 @@ required_packages:
- socat
- gcc
- dnsmasq
- apache2-utils
- isolinux
- dosfstools
# NOTE(TheJulia): The above entry for dnsmasq must be the last entry in the

View File

@ -33,6 +33,5 @@ required_packages:
- socat
- firewalld
- python3-firewall
- httpd-tools
- syslinux-nonlinux
- dosfstools

View File

@ -39,11 +39,20 @@
- ansible_distribution == "CentOS"
- ansible_distribution_version|int >= 9
- name: "Install packages"
- name: "Install system packages"
package:
name: "{{ required_packages }}"
state: present
- name: "Install python packages (in venv)"
include_role:
name: bifrost-pip-install
vars:
package: "{{ item }}"
with_items:
- passlib
- pymysql
- name: "Install Nginx"
import_role:
name: bifrost-nginx-install
@ -120,12 +129,6 @@
package: metalsmith
source_install: false
- name: "Install pymysql"
include_role:
name: bifrost-pip-install
vars:
package: pymysql
- name: "Install extra packages for ironic"
include_role:
name: bifrost-pip-install