Bugfix - playbook trying to execute RedHat code

This commit is contained in:
lucascbeyeler 2017-07-09 17:37:12 -03:00
parent 72057a6504
commit caaf3aa210
1 changed files with 2 additions and 0 deletions

View File

@ -11,8 +11,10 @@
yum: yum:
name: "{{ centos }}" name: "{{ centos }}"
state: present state: present
when: ansible_os_family == "RedHat"
- name: Ensure Pyzor and Razor is installed (Ubuntu) - name: Ensure Pyzor and Razor is installed (Ubuntu)
apt: apt:
name: "{{ ubuntu }}" name: "{{ ubuntu }}"
state: present state: present
when: ansible_os_family == "Debian"