Skip to content

Commit fdda694

Browse files
committed
* Reworked all ansible_* facts to 'new' naming scheme ansible_facts['*']
* Reworked templates to handle true/false bools set by users
1 parent d63cc56 commit fdda694

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# {{ ansible_managed }}
2-
install-gtk={{ thinlinc_autoinstall_dependencies }}
2+
install-gtk={{ thinlinc_autoinstall_dependencies | ternary('yes', 'no', 'no') }}
33
email-address={{ thinlinc_email }}
4-
install-python-ldap={{ thinlinc_autoinstall_dependencies }}
4+
install-python-ldap={{ thinlinc_autoinstall_dependencies | ternary('yes', 'no', 'no') }}
55
setup-firewall=yes
66
setup-selinux=yes
77
setup-web-integration=yes
88
setup-apparmor=yes
9-
{% if ansible_fqdn in groups['thinlinc_masters'] %}
9+
{% if ansible_facts['fqdn'] in groups['thinlinc_masters'] %}
1010
server-type=master
1111
{% else %}
1212
server-type=agent
1313
{% endif %}
1414
missing-answer=abort
15-
install-nfs={{ thinlinc_autoinstall_dependencies }}
16-
install-sshd={{ thinlinc_autoinstall_dependencies }}
17-
accept-eula={{ thinlinc_accept_eula }}
15+
install-nfs={{ thinlinc_autoinstall_dependencies | ternary('yes', 'no', 'no') }}
16+
install-sshd={{ thinlinc_autoinstall_dependencies | ternary('yes', 'no', 'no') }}
17+
accept-eula={{ thinlinc_accept_eula | ternary('yes', 'no', 'no') }}
1818
migrate-conf={{ thinlinc_tlsetup_migrate_conf }}
19-
install-required-libs={{ thinlinc_autoinstall_dependencies }}
20-
setup-nearest={{ thinlinc_printers }}
21-
setup-thinlocal={{ thinlinc_printers }}
19+
install-required-libs={{ thinlinc_autoinstall_dependencies | ternary('yes', 'no', 'no') }}
20+
setup-nearest={{ thinlinc_printers | ternary('yes', 'no', 'no') }}
21+
setup-thinlocal={{ thinlinc_printers | ternary('yes', 'no', 'no') }}
2222
tlwebadm-password={{ thinlinc_webadm_password }}

0 commit comments

Comments
 (0)