freebsd fix

This commit is contained in:
Bryan Black 2018-10-20 18:16:48 -07:00 committed by GitHub
parent e0f1ab4984
commit b4cd66f75d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,13 @@
with_items: "{{ users }}"
register: sshconfig
when: item.name != 'ec2-user' and ansible_os_family == 'Debian'
- name: Check if user has ~/.ssh/config | FreeBSD systems.
stat:
path: "/home/{{ item.name }}/.ssh/config"
with_items: "{{ users }}"
register: sshconfig
when: item.name != 'ubuntu' and ansible_os_family == 'FreeBSD'
- name: debug
debug: "{{ item.item.name }}"