mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-20 01:11:26 -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
|
- name: delete_newroot
|
||||||
file:
|
file:
|
||||||
path: "{{ newroot.path }}"
|
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
|
- import_tasks: setup.yml
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
|
|
|
@ -1,21 +1,19 @@
|
||||||
|
---
|
||||||
# Copyright (c) Ansible Project
|
# 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)
|
# 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
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
- name: Include OS-specific variables
|
||||||
|
include_vars: '{{ ansible_os_family }}.yml'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
become: true
|
become: true
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
# - java-21-openjdk-headless
|
- "{{ openjdk_pkg }}"
|
||||||
- openjdk-17-jdk-headless
|
|
||||||
- unzip
|
- unzip
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Print env
|
|
||||||
debug:
|
|
||||||
var: ansible_env
|
|
||||||
|
|
||||||
- name: Create Android SDK directory
|
- name: Create Android SDK directory
|
||||||
file:
|
file:
|
||||||
path: "{{ android_sdk_location }}"
|
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
|
# 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)
|
# 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
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue