diff options
| author | Scott Dodson <sdodson@redhat.com> | 2017-03-02 21:47:43 -0500 | 
|---|---|---|
| committer | Scott Dodson <sdodson@redhat.com> | 2017-03-02 21:55:06 -0500 | 
| commit | fb17c969069121aa45b8041804126da40f082ffb (patch) | |
| tree | 75ffefbbc59fad219ccc8eb562e9541495f6be23 | |
| parent | 6eeceffad2d296d8e4c9a14de3c8e831e438e24c (diff) | |
Only set ownership to etcd for thirdparty datadir
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1428532
| -rw-r--r-- | roles/etcd/tasks/main.yml | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/roles/etcd/tasks/main.yml b/roles/etcd/tasks/main.yml index 17bec5352..b4ffc99e3 100644 --- a/roles/etcd/tasks/main.yml +++ b/roles/etcd/tasks/main.yml @@ -63,10 +63,17 @@      path: "{{ etcd_data_dir }}"      state: directory      mode: 0700 +  when: etcd_is_containerized | bool + +- name: Ensure etcd datadir ownership for thirdparty datadir +  file: +    path: "{{ etcd_data_dir }}" +    state: directory +    mode: 0700      owner: etcd      group: etcd      recurse: True -  when: etcd_is_containerized | bool or etcd_is_thirdparty | bool +  when: etcd_is_thirdparty | bool    # TODO: Determine if the below reload would work here, for now just reload  - name:  | 
