Skip to content

Commit

Permalink
Merge pull request #68 from stackhpc/ansible-facts
Browse files Browse the repository at this point in the history
Use ansible_facts to reference facts
  • Loading branch information
mrlesmithjr authored Jul 26, 2021
2 parents 098bd79 + 73b6bce commit 73db3c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tasks/centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 73db3c7

Please sign in to comment.