Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 07d3917

Browse files
authored
Merge pull request #277 from kostasns/ansible_facts
fix(ansible_facts): replace few remaining facts from 'ansible_' to using 'ansible_facts' dictionary
2 parents 249e3a0 + 0fac54c commit 07d3917

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tasks/crypto.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
set_fact:
3737
ssh_macs: '{{ ssh_macs_53_el_6_5_default }}'
3838
when:
39-
- ansible_distribution in ['CentOS', 'OracleLinux', 'RedHat']
40-
- ansible_distribution_version is version('6.5', '>=')
39+
- ansible_facts.distribution in ['CentOS', 'OracleLinux', 'RedHat']
40+
- ansible_facts.distribution_version is version('6.5', '>=')
4141
- not ssh_macs
4242

4343
- name: set macs according to openssh-version

tasks/hardening.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@
8383

8484
- name: include selinux specific tasks
8585
include_tasks: selinux.yml
86-
when: ansible_selinux and ansible_selinux.status == "enabled"
86+
when: ansible_facts.selinux and ansible_facts.selinux.status == "enabled"

0 commit comments

Comments
 (0)