don't create users depending on OS #14

Merged
vincentvdk merged 14 commits from fix/13 into master 2018-10-21 01:36:24 +00:00
Showing only changes of commit 5d4c7f9f55 - Show all commits

View file

@ -4,7 +4,7 @@
path: "/home/{{ item.name }}/.ssh/config"
with_items: "{{ users }}"
register: sshconfig
when: item.name != 'freebsd' and ansible_os_family == 'Debian'
when: item.name != 'ec2-user' and ansible_os_family == 'Debian'
- name: debug
debug: "{{ item.item.name }}"
@ -56,6 +56,6 @@
with_items:
- "{{ users }}"
- skip_missing: true
when: item.ssh_config is defined and item.state == "present" and item.name != 'freebsd' and ansible_os_family == 'Debian'
when: item.ssh_config is defined and item.state == "present" and item.name != 'ec2-user' and ansible_os_family == 'Debian'