42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
---
|
|
|
|
- name: create application group
|
|
group:
|
|
name: "{{ atlassian_confluence_group }}"
|
|
system: no
|
|
gid: "{{ atlassian_confluence_gid }}"
|
|
state: present
|
|
|
|
- name: create user
|
|
user:
|
|
name: "{{ atlassian_confluence_user }}"
|
|
uid: "{{ atlassian_confluence_uid }}"
|
|
system: no
|
|
createhome: no
|
|
comment: "Atlassian Confluence"
|
|
group: "{{ atlassian_confluence_group }}"
|
|
home: /nonexistant
|
|
shell: /bin/false
|
|
state: present
|
|
|
|
- name: create directories
|
|
file:
|
|
path: "{{ item.path }}"
|
|
state: directory
|
|
owner: "{{ item.owner }}"
|
|
group: "{{ item.group }}"
|
|
mode: "{{ item.mode }}"
|
|
with_items:
|
|
- {path: "{{ atlassian_confluence_basedir }}",
|
|
owner: 'root',
|
|
group: 'root',
|
|
mode: '0751'}
|
|
- {path: "{{ atlassian_home }}",
|
|
owner: 'root',
|
|
group: 'root',
|
|
mode: '0751'}
|
|
- {path: "{{ atlassian_confluence_home }}",
|
|
owner: "{{ atlassian_confluence_user }}",
|
|
group: "{{ atlassian_confluence_group }}",
|
|
mode: '0750'}
|