mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-18 08:21:25 -07:00
adds java dependency variable for different distributions
This commit is contained in:
parent
4441be779f
commit
100a91fdeb
10 changed files with 51 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
- name: delete_newroot
|
||||
file:
|
||||
path: "{{ newroot.path }}"
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
- import_tasks: setup.yml
|
||||
|
||||
- name: Setup environment
|
||||
|
|
|
@ -1,21 +1,19 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
- name: Include OS-specific variables
|
||||
include_vars: '{{ ansible_os_family }}.yml'
|
||||
|
||||
- name: Install dependencies
|
||||
become: true
|
||||
package:
|
||||
name:
|
||||
# - java-21-openjdk-headless
|
||||
- openjdk-17-jdk-headless
|
||||
- "{{ openjdk_pkg }}"
|
||||
- unzip
|
||||
state: present
|
||||
|
||||
- name: Print env
|
||||
debug:
|
||||
var: ansible_env
|
||||
|
||||
- name: Create Android SDK directory
|
||||
file:
|
||||
path: "{{ android_sdk_location }}"
|
||||
|
|
6
tests/integration/targets/android_sdk/vars/Alpine.yml
Normal file
6
tests/integration/targets/android_sdk/vars/Alpine.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
openjdk_pkg: openjdk17-jre-headless
|
6
tests/integration/targets/android_sdk/vars/Archlinux.yml
Normal file
6
tests/integration/targets/android_sdk/vars/Archlinux.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
openjdk_pkg: jre17-openjdk-headless
|
6
tests/integration/targets/android_sdk/vars/Debian.yml
Normal file
6
tests/integration/targets/android_sdk/vars/Debian.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
openjdk_pkg: openjdk-17-jre-headless
|
6
tests/integration/targets/android_sdk/vars/FreeBSD.yml
Normal file
6
tests/integration/targets/android_sdk/vars/FreeBSD.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
openjdk_pkg: openjdk17-jre
|
6
tests/integration/targets/android_sdk/vars/RedHat.yml
Normal file
6
tests/integration/targets/android_sdk/vars/RedHat.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
openjdk_pkg: java-17-openjdk-headless
|
6
tests/integration/targets/android_sdk/vars/Suse.yml
Normal file
6
tests/integration/targets/android_sdk/vars/Suse.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
openjdk_pkg: java-17-openjdk-headless
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue