Use the same fact syntax throughout the role

Create consistency by using the ansible_facts['somefact'] syntax everywhere.
This commit is contained in:
Marcus Meurs
2018-12-10 23:47:16 +01:00
parent a9fa164ebe
commit 154899586e
4 changed files with 11 additions and 10 deletions

View File

@@ -11,7 +11,7 @@
gpgcheck: yes
enabled: yes
register: zerotier_repo
when: ansible_distribution != "Fedora"
when: ansible_facts['distribution'] != "Fedora"
- name: Add zerotier repo for Fedora
yum_repository:
@@ -21,4 +21,4 @@
gpgcheck: yes
enabled: yes
register: zerotier_repo
when: ansible_distribution == "Fedora"
when: ansible_facts['distribution'] == "Fedora"