1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add requirements to two modules.

This commit is contained in:
Felix Fontein 2023-12-11 23:17:06 +01:00
parent 4eab1a9062
commit 69d67b5533
2 changed files with 29 additions and 0 deletions

View file

@ -99,6 +99,30 @@ options:
choices: [ absent, present ]
default: present
requirements: [openssl, keytool]
installable_requirements:
- name: Java keytool
blocks:
- system:
- openjdk11-jre-headless
when: ansible_facts.os_family == 'Alpine'
- system:
- java-11-openjdk-headless
when: ansible_facts.os_family in ['RedHat', 'Suse']
- system:
- jre11-openjdk-headless
when: ansible_facts.os_family == 'Archlinux'
- system:
- ca-certificates-java
when: ansible_facts.distribution == 'Debian' and ansible_facts.distribution_major_version | int < 12
- system:
- ca-certificates-java
- openjdk-17-jre-headless
when: ansible_facts.os_family == 'Debian'
- name: OpenSSL
blocks:
- system:
- openssl
when: true
author:
- Adam Hamsik (@haad)
'''

View file

@ -32,6 +32,11 @@ attributes:
support: full
diff_mode:
support: none
installable_requirements:
- name: ufw firewall
blocks:
- system:
- ufw
options:
state:
description: