Skip to content

Commit

Permalink
Merge pull request #23 from ait-aecid/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
whotwagner authored Jan 8, 2024
2 parents b766ff4 + c27ffa8 commit 8877d76
Show file tree
Hide file tree
Showing 13 changed files with 340 additions and 135 deletions.
3 changes: 1 addition & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ aminer_systemdloc: "/etc/systemd/system"
aminer_vardir: "/var/lib/aminer"
aminer_user: "aminer"
aminer_group: "aminer"
aminer_pippath: "/usr/local/lib/python3.6/dist-packages"
aminer_pythonpath: "/usr/lib/python3/dist-packages"
aminer_pkgrespath: "{{aminer_pythonpath}}"
aminer_docbookxslpath: "/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl"
2 changes: 2 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ galaxy_info:
- logging
- debian
- ubuntu
- fedora
- redhat

dependencies: []
36 changes: 33 additions & 3 deletions tasks/RedHat.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
- name: link python3
- name: Install python3-cerberus
pip:
name: cerberus
executable: pip3
state: latest

- name: pip self-update
pip:
name: pip
executable: pip3
state: latest

- name: Install python3-kafka
pip:
name: kafka-python
executable: pip3
state: latest

- name: Install python3-patsy
pip:
name: patsy
executable: pip3
state: latest

- name: Install python3-statsmodels
pip:
name: statsmodels
executable: pip3
state: latest

- name: Link yaml
file:
src: /usr/bin/python36
dest: /usr/bin/python3
src: "{{aminer_pythonpath[1]}}/yaml"
dest: "/etc/aminer/conf-enabled/yaml"
state: link
49 changes: 0 additions & 49 deletions tasks/buster.yml

This file was deleted.

41 changes: 41 additions & 0 deletions tasks/debian-buster.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
- name: pip self-update
pip:
name: pip
executable: pip3
state: latest

- name: Install python3-cerberus
pip:
name: cerberus
executable: pip3
state: latest

- name: Install python3-kafka
pip:
name: kafka-python
executable: pip3
state: latest

- name: Install importlib-metadata
pip:
name: importlib-metadata
executable: pip3
state: latest

- name: Link importlib-metadata
file:
src: "{{aminer_pythonpath[2]}}/importlib_metadata"
dest: "/etc/aminer/conf-enabled/importlib_metadata"
state: link

- name: Link zipp
file:
src: "{{aminer_pythonpath[2]}}/zipp"
dest: "/etc/aminer/conf-enabled/zipp"
state: link

- name: Link typing-extensions
file:
src: "{{aminer_pythonpath[2]}}/typing_extensions.py"
dest: "/etc/aminer/conf-enabled/typing_extensions.py"
state: link
12 changes: 0 additions & 12 deletions tasks/debian.yml

This file was deleted.

5 changes: 5 additions & 0 deletions tasks/fedora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: Link yaml
file:
src: "{{aminer_pythonpath[1]}}/yaml"
dest: "/etc/aminer/conf-enabled/yaml"
state: link
Loading

0 comments on commit 8877d76

Please sign in to comment.