mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2025-12-14 22:04:48 +03:00
Merge pull request #68 from stackhpc/ansible-facts
Use ansible_facts to reference facts
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
become: true
|
||||
|
||||
- include_tasks: amazon.yml
|
||||
when: ansible_system_vendor == 'Amazon EC2'
|
||||
when: ansible_facts.system_vendor == 'Amazon EC2'
|
||||
|
||||
- name: centos | installing sg3_utils
|
||||
package:
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
# tasks file for ansible-manage-lvm
|
||||
- include_tasks: debian.yml
|
||||
when: ansible_os_family == "Debian"
|
||||
when: ansible_facts.os_family == "Debian"
|
||||
|
||||
- include_tasks: centos.yml
|
||||
when: ansible_os_family == "RedHat"
|
||||
when: ansible_facts.os_family == "RedHat"
|
||||
|
||||
- include_tasks: manage_lvm.yml
|
||||
when:
|
||||
|
||||
Reference in New Issue
Block a user