Skip to content
Snippets Groups Projects
Commit b059c5ae authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Fix role idempotence

JIRA INFRA-2580 #action In Progress
parent ad5b762a
No related branches found
No related tags found
No related merge requests found
---
- name: update apt cache
apt:
update_cache: true
when: ansible_facts['os_family'] == "Debian"
- name: install required dependencies for RedHat
yum:
name: unzip
state: present
when: ansible_facts['os_family'] == "RedHat"
- name: install required dependencies
package:
# update_cache is required but can't be passed to the package module
- name: install required dependencies for Debian
apt:
name: unzip
state: present
update_cache: true
when: ansible_facts['os_family'] == "Debian"
- name: create the java base directory
file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment