Skip to content

Commit

Permalink
Merge pull request #20 from markgoddard/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 4b8927b + 770f78e commit 175ae13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion molecule/shared/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
apt:
update_cache: true
become: true
when: ansible_os_family == "Debian"
when: ansible_facts.os_family == "Debian"
4 changes: 2 additions & 2 deletions tasks/set_facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
set_fact:
chrony_config: /etc/chrony/chrony.conf
chrony_service: chrony
when: ansible_os_family == "Debian"
when: ansible_facts.os_family == "Debian"

- name: set_facts | Define RedHat Facts
set_fact:
chrony_config: /etc/chrony.conf
chrony_service: chronyd
when: ansible_os_family == "RedHat"
when: ansible_facts.os_family == "RedHat"

0 comments on commit 175ae13

Please sign in to comment.