Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 320b144

Browse files
committed
Use ansible_distribution. [ci skip]
1 parent 8f55904 commit 320b144

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

roles/oracle_jdk/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
# file: roles/oracle_jdk/tasks/main.yml
33

4-
- name: add webupd8team java repository for ubuntu
4+
- name: add webupd8team java repository for Ubuntu
55
apt_repository: repo='ppa:webupd8team/java'
66
when: ansible_distribution == "Ubuntu"
77

8-
- name: add webupd8team java repository for debian
8+
- name: add webupd8team java repository for Debian "wheezy"
99
script: install_debian_webupd8team_repo.sh
1010
when:
1111
- ansible_distribution == "Debian"

roles/td_agent/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
apt_repository: repo='deb http://packages.treasure-data.com/precise/ precise contrib'
66
tags: tdagent
77

8-
- name: install libssl0.9.8 for debian wheezy
8+
- name: install libssl0.9.8 for Debian "wheezy"
99
script: install_debian_libssl0.9.8.sh
1010
when:
11-
- ansible_os_family == "Debian"
12-
- ansible_lsb["codename"] == "wheezy"
11+
- ansible_distribution == "Debian"
12+
- ansible_distribution_release == "wheezy"
1313

1414
- name: install td-agent via apt
1515
apt: pkg=td-agent update_cache=yes force=yes

0 commit comments

Comments
 (0)