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