2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-26 16:08:23 +00:00
bench/playbooks/develop/create_user.yml

23 lines
751 B
YAML
Raw Normal View History

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