Skip to content

Commit

Permalink
#28 Address Ansible Lint '[208] File permissions not mentioned' for a…
Browse files Browse the repository at this point in the history
… few other cases
  • Loading branch information
T2L committed Aug 20, 2020
1 parent 492ed89 commit bb6847b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions tasks/cores.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
owner: '{{ solr_user }}'
group: '{{ solr_group }}'
recurse: true
mode: 0755
loop: '{{ solr_cores }}'

- name: Set default core configuration path
Expand Down
13 changes: 10 additions & 3 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,19 @@
when: solr_needs_install

# Make sure all directories exist
- name: Make sure all directories exist
- name: Make sure download directory exists
file:
path: "{{ item }}"
path: '{{ solr_download_dir }}'
state: directory
mode: 0777
when: solr_needs_install

- name: Make sure install & data directories exist
file:
path: '{{ item }}'
state: directory
mode: 0755
loop:
- '{{ solr_download_dir }}'
- '{{ solr_install_dir }}'
- '{{ solr_data_dir }}'
when: solr_needs_install
Expand Down

0 comments on commit bb6847b

Please sign in to comment.