2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-23 12:39:01 +00:00
bench/playbooks/develop/create_user.yml

23 lines
751 B
YAML
Raw Normal View History

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'
2016-07-27 07:40:52 +00:00
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS' or ansible_distribution == 'Debian'
2016-05-25 10:47:48 +00:00
- name: Set home folder perms
file:
path: '/Users/{{ frappe_user }}'
mode: 'o+rx'
when: ansible_distribution == 'MacOSX'
- name: Set /tmp/.bench folder perms
2016-08-01 05:22:15 +00:00
command: 'chown -R {{ frappe_user }}:{{ frappe_user }} {{ repo_path }}'
2016-07-27 07:40:52 +00:00
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS' or ansible_distribution == 'Debian'