2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 08:16:28 +00:00
bench/playbooks/develop/create_user.yml
2016-08-03 00:24:24 -07:00

23 lines
751 B
YAML
Executable File

---
- 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' or ansible_distribution == 'Debian'
- 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 }} {{ repo_path }}'
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS' or ansible_distribution == 'Debian'