Skip to content

Commit 78556e6

Browse files
committed
Merge branch 'main' of github.com:computate-org/computate_solr into main
2 parents 06cdf88 + d3f28b6 commit 78556e6

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ APP_REPO: "https://github.com/apache/lucene-solr.git"
1515
APP_VERSION: 8.9.0
1616
APP_TAG: "releases/lucene-solr/{{ APP_VERSION }}"
1717
APP_PORT: 8983
18+
ZOOKEEPER_PORT: 2181
1819
APP_USER: "root"
1920
APP_CONFIG: computate
2021
APP_MIRROR_URL: https://archive.apache.org/dist/lucene/solr

tasks/main.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
---
2+
- name: "install podman dependency"
3+
package:
4+
name:
5+
- python3
6+
- python3-pip
7+
- libselinux-python
8+
- libsemanage-python
9+
- podman
10+
state: present
11+
become: true
12+
when: ansible_pkg_mgr != 'homebrew' and APP_PYTHON == '/usr/bin/python'
13+
vars:
14+
ansible_python_interpreter: "{{ APP_PYTHON }}"
215
- name: "install podman dependency"
316
package:
417
name:
@@ -9,13 +22,17 @@
922
- podman
1023
state: present
1124
become: true
12-
when: ansible_pkg_mgr != 'homebrew'
25+
when: ansible_pkg_mgr != 'homebrew' and APP_PYTHON == '/usr/bin/python3'
26+
vars:
27+
ansible_python_interpreter: "{{ APP_PYTHON }}"
1328
- name: Set container_manage_cgroup flag on to run podman containers as systemd services and keep it persistent across reboots
1429
ansible.posix.seboolean:
1530
name: container_manage_cgroup
1631
state: true
1732
persistent: true
1833
become: true
34+
vars:
35+
ansible_python_interpreter: "{{ APP_PYTHON }}"
1936
- name: Check for the {{ APP_NAME }} download
2037
stat:
2138
path: "{{ APP_DOWNLOAD_DEST }}"
@@ -64,6 +81,8 @@
6481
target: "{{ APP_DATA }}"
6582
setype: container_file_t
6683
become: true
84+
vars:
85+
ansible_python_interpreter: "{{ APP_PYTHON }}"
6786
- name: reload SELinux policy to ensure that {{ APP_NAME }} is executable
6887
command: "restorecon -irv {{ APP_DATA }}"
6988
become: true

0 commit comments

Comments
 (0)