mirror of
https://github.com/frappe/bench.git
synced 2024-11-14 17:24:04 +00:00
9b24458a96
- Commented the reason for using particular version of wkhtmltopdf - Changes the default shell to bash for frappe user
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
---
|
|
|
|
- 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'
|
|
owner: '{{ frappe_user }}'
|
|
group: '{{ frappe_user }}'
|
|
recurse: yes
|
|
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'
|
|
owner: '{{ frappe_user }}'
|
|
group: '{{ frappe_user }}'
|
|
recurse: yes
|
|
when: ansible_distribution == 'MacOSX'
|
|
|
|
- name: Set /tmp/.bench folder perms
|
|
file:
|
|
path: '{{ repo_path }}'
|
|
owner: '{{ frappe_user }}'
|
|
group: '{{ frappe_user }}'
|
|
recurse: yes
|
|
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS' or ansible_distribution == 'Debian'
|
|
|
|
- name: Change default shell to bash
|
|
shell: "chsh {{ frappe_user }} -s $(which bash)"
|
|
... |