2016-05-25 10:47:48 +00:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
|
|
|
tasks:
|
|
|
|
- name: Create user
|
|
|
|
user:
|
|
|
|
name: '{{ frappe_user }}'
|
|
|
|
generate_ssh_key: yes
|
|
|
|
|
|
|
|
- name: Set home folder perms
|
|
|
|
file:
|
|
|
|
path: '/home/{{ frappe_user }}'
|
|
|
|
mode: 'o+rx'
|
|
|
|
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS'
|
|
|
|
|
|
|
|
- name: Set home folder perms
|
|
|
|
file:
|
|
|
|
path: '/Users/{{ frappe_user }}'
|
|
|
|
mode: 'o+rx'
|
|
|
|
when: ansible_distribution == 'MacOSX'
|
|
|
|
|
|
|
|
- name: Set /tmp/.bench folder perms
|
|
|
|
command: 'chown -R {{ frappe_user }}:{{ frappe_user }} /tmp/.bench'
|
2016-05-30 11:12:55 +00:00
|
|
|
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS'
|