Skip to content

Commit

Permalink
style: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
antmelekhin committed Oct 6, 2024
1 parent 1db6cd5 commit 884ece5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
- name: 'Set JAVA_HOME if configured'
become: true
ansible.builtin.template:
src: 'java_home.sh.j2'
dest: '/etc/profile.d/java_home.sh'
mode: 0755
when: java_home | length
become: true
2 changes: 1 addition & 1 deletion tasks/install-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
mode: 0644

- name: 'Debian | Install the {{ __java_package_distribution }} package'
become: true
ansible.builtin.apt:
name: '{{ java_corretto_package_name
if java_distribution == "corretto"
else java_openjdk_package_name }}'
update_cache: true
state: 'present'
ignore_errors: '{{ ansible_check_mode }}'
become: true
2 changes: 1 addition & 1 deletion tasks/install-RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
mode: 0644

- name: 'RedHat | Install the {{ __java_package_distribution }} package'
become: true
ansible.builtin.package:
name: "{{ java_corretto_package_name
if java_distribution == 'corretto' or
ansible_distribution == 'Amazon'
else java_openjdk_package_name }}"
state: 'present'
become: true

0 comments on commit 884ece5

Please sign in to comment.