Skip to content

Commit

Permalink
Ambari non-root: required also to set the ambari-user as owner for th…
Browse files Browse the repository at this point in the history
…e ambari folders
  • Loading branch information
lhoss committed Jul 3, 2020
1 parent 62ea3d6 commit 2eac0a7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions playbooks/roles/ambari-server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,17 @@
line: 'ambari-server.user={{ambari_server_user}}'
notify: Restart ambari-server

- name: Set the owner for the ambari folders
file:
state: directory
path: "{{ item }}"
owner: "{{ ambari_server_user }}"
recurse: yes
with_items:
- "/var/lib/ambari-server"
- "/var/run/ambari-server"
- "{{ base_log_dir }}/ambari-server"

- meta: flush_handlers

- name: Make sure the ambari-server service is started
Expand Down

0 comments on commit 2eac0a7

Please sign in to comment.