2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-14 17:24:04 +00:00
bench/playbooks/create_user.yml

30 lines
652 B
YAML
Raw Normal View History

2016-05-25 10:47:48 +00:00
---
2018-02-05 09:37:14 +00:00
2016-05-25 10:47:48 +00:00
- hosts: localhost
2019-06-14 13:15:24 +00:00
become: yes
become_user: root
2016-05-25 10:47:48 +00:00
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 15:44:47 +00:00
owner: '{{ frappe_user }}'
group: '{{ frappe_user }}'
recurse: yes
2016-05-25 10:47:48 +00:00
- name: Set /tmp/.bench folder perms
2017-05-15 15:44:47 +00:00
file:
path: '{{ repo_path }}'
owner: '{{ frappe_user }}'
group: '{{ frappe_user }}'
recurse: yes
2018-02-05 09:37:14 +00:00
- name: Change default shell to bash
shell: "chsh {{ frappe_user }} -s $(which bash)"
2018-04-27 08:06:42 +00:00
...