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 ec611b2030 - Show all commits

View file

@ -8,7 +8,7 @@
group: "{{ item.name }}"
with_items:
- "{{ users }}"
when: item.state == "present" and item.name != 'freebsd' and ansible_os_family == 'Debian'
when: item.state == "present" and item.name != 'ec2-user' and ansible_os_family == 'Debian'
- name: Configure authorized_keys | Debian/Ubuntu systems
@ -19,7 +19,7 @@
with_subelements:
- "{{ users }}"
- keys
when: item.0.state is defined and item.0.state == "present" and item.0.name != 'freebsd' and ansible_os_family == 'Debian'
when: item.0.state is defined and item.0.state == "present" and item.0.name != 'ec2-user' and ansible_os_family == 'Debian'
- name: Ensure .ssh folder is created | FreeBSD systems
file: