2016-11-07 14:00:57 +01:00
|
|
|
---
|
|
|
|
|
2018-04-20 14:38:08 +02:00
|
|
|
- name: "System compatibility checks"
|
|
|
|
assert:
|
2018-04-15 16:58:33 +02:00
|
|
|
that:
|
|
|
|
- ansible_distribution == "Debian"
|
2020-02-25 10:45:35 +01:00
|
|
|
- ansible_distribution_major_version is version('8', '>=')
|
2017-08-22 00:42:14 +02:00
|
|
|
msg: only compatible with Debian >= 8
|
|
|
|
|
2017-07-22 07:57:46 +02:00
|
|
|
- debug:
|
2017-10-05 23:55:34 +02:00
|
|
|
msg: "Warning: empty 'evolinux_users' variable, tasks will be skipped!"
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_users | length == 0
|
2017-04-10 18:16:06 +02:00
|
|
|
|
2017-10-10 22:01:12 +02:00
|
|
|
- name: Create user accounts
|
|
|
|
include: user.yml
|
2017-05-20 19:55:42 +02:00
|
|
|
vars:
|
2017-05-19 22:29:28 +02:00
|
|
|
user: "{{ item.value }}"
|
2021-05-04 14:20:53 +02:00
|
|
|
loop: "{{ evolinux_users | dict2items }}"
|
2022-08-23 23:45:19 +02:00
|
|
|
when:
|
2022-08-24 15:05:29 +02:00
|
|
|
- user.create == evolinux_users_create
|
2022-08-23 23:45:19 +02:00
|
|
|
- evolinux_users | length > 0
|
2017-10-10 22:01:44 +02:00
|
|
|
|
2018-03-01 18:26:18 +01:00
|
|
|
- name: Configure sudo
|
|
|
|
include: sudo.yml
|
|
|
|
|
|
|
|
- name: Configure SSH
|
|
|
|
include: ssh.yml
|
2021-05-09 23:06:42 +02:00
|
|
|
when: evolinux_users | length > 0
|