2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 15:38:25 +00:00
bench/playbooks/create_user.yml

36 lines
996 B
YAML
Raw Normal View History

2016-05-25 16:17:48 +05:30
---
2018-02-05 15:07:14 +05:30
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'
2017-05-15 17:44:47 +02:00
owner: '{{ frappe_user }}'
group: '{{ frappe_user }}'
recurse: yes
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'
2017-05-15 17:44:47 +02:00
owner: '{{ frappe_user }}'
group: '{{ frappe_user }}'
recurse: yes
2016-05-25 16:17:48 +05:30
when: ansible_distribution == 'MacOSX'
- name: Set /tmp/.bench folder perms
2017-05-15 17:44:47 +02:00
file:
path: '{{ repo_path }}'
owner: '{{ frappe_user }}'
group: '{{ frappe_user }}'
recurse: yes
2018-02-05 15:07:14 +05:30
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS' or ansible_distribution == 'Debian'
...