Merge pull request #68 from stackhpc/ansible-facts

Use ansible_facts to reference facts
This commit is contained in:
Larry Smith Jr
2021-07-26 14:25:57 -04:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -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:

View File

@@ -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: