we need www-evoadmin user in Debian 9

This commit is contained in:
Gregory Colpart 2017-09-18 22:36:14 +02:00
parent a5e76c5248
commit 7f9399964b

View file

@ -12,6 +12,18 @@
name: www-evoadmin name: www-evoadmin
state: present state: present
- name: "Create www-evoadmin and add to group shadow (jessie)"
user:
name: www-evoadmin
groups: shadow
append: yes
when: ansible_distribution_release == "jessie"
- name: "Create www-evoadmin (Debian 9 or later)"
user:
name: www-evoadmin
when: ansible_distribution_major_version | version_compare('9', '>=')
- name: Install Git - name: Install Git
apt: apt:
name: git name: git
@ -61,13 +73,6 @@
with_items: with_items:
- "{{ evoadmin_home_dir}}/www" - "{{ evoadmin_home_dir}}/www"
- name: "Add www-evoadmin to group shadow (jessie)"
user:
name: www-evoadmin
groups: shadow
append: yes
when: ansible_distribution_release == "jessie"
- name: Add evoadmin sudoers file - name: Add evoadmin sudoers file
template: template:
src: sudoers.j2 src: sudoers.j2