added fixes for ansible 2.8
[noc.git] / ansible / roles / localconfig / tasks / main.yml
index 79f9f57..a818658 100644 (file)
     state: directory
 
 - name: install generated ssh config snippets
+  with_fileglob:
+    - "../templates/ssh/*.conf.j2"
   template:
     src: "ssh/{{ item | basename }}"
     dest: "~/.ssh/config.d/{{ item | basename | regex_replace('^(.*)\\.j2$', '\\1') }}"
-  with_fileglob:
-    - "../templates/ssh/*.conf.j2"
 
 - name: install static ssh config snippets
   copy:
@@ -27,4 +27,4 @@
     src: ~/.ssh/config.d/
     regexp: "\\.conf$"
     dest: ~/.ssh/config
-  when: localconfig_overwrite_ssh_config
+  when: localconfig_overwrite_ssh_config | bool