2a1926ec96
Change-Id: I9b3625701cbf3d4b16222f1a61de32cc6148d453
38 lines
625 B
YAML
38 lines
625 B
YAML
---
|
|
|
|
|
|
- name: ensure stack group exists
|
|
become: yes
|
|
group:
|
|
name: stack
|
|
state: present
|
|
|
|
|
|
- name: ensure stack user exists
|
|
become: yes
|
|
user:
|
|
name: stack
|
|
home: '{{ devstack_dest_dir }}'
|
|
comment: DevStack user
|
|
group: stack
|
|
shell: /bin/bash
|
|
|
|
|
|
- name: ensure stack user has sudo privileges
|
|
become: yes
|
|
copy:
|
|
dest: /etc/sudoers.d/stack
|
|
content: |
|
|
stack ALL=(ALL) NOPASSWD: ALL
|
|
|
|
|
|
- name: ensure stack user home exists
|
|
become: yes
|
|
become_user: root
|
|
file:
|
|
path: '{{ devstack_dest_dir | realpath }}'
|
|
state: directory
|
|
mode: '0755'
|
|
owner: stack
|
|
group: stack
|