Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Adding support for Centos8
Signed-off-by: Patrick Kirsch <patrick.kirsch@olanis.de>
  • Loading branch information
Patrick Kirsch committed Jan 7, 2021
commit abf15cb1ec5fab1c6adec86f3353efdabc2c4edc
9 changes: 8 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,20 @@

- name: Ensure the EPEL repository GPG key is imported
rpm_key:
key: /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
key: /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}
state: present

when: ((ansible_distribution | lower) == "centos")
or ((ansible_distribution | lower) == "redhat")
tags: repo

- include: repo_RedHat_8.yml
when:
- ansible_os_family|lower == "redhat"
- not ansible_distribution|lower == "fedora"
- ansible_distribution_major_version == "8"
tags: repo

# https://docs.ansible.com/ansible/latest/become.html#becoming-an-unprivileged-user
- name: Install acl controls
package:
Expand Down
14 changes: 14 additions & 0 deletions tasks/repo_RedHat_8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
# tasks/repo_RedHat.yml: RedHat based distro repository configuration for RocketChat.Ansible
- name: Clean existing repo nodejs & npm
yum:
name:
- nodejs
- npm
state: absent

# Bad situation nodejs:12 packages npm version which only supports <=nodejs11
# newer node uses old npm to install supported npm version
# /usr/local/n/versions/node/12.18.4/bin/node /usr/local/n/versions/node/8.11.4/bin/npm i -g npm@latest
- name: Install newer nodejs v12
shell: dnf module install -y nodejs:12
1 change: 1 addition & 0 deletions vars/RedHat_7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ rocket_chat_service_template_at:
src: rocketchat@.service.j2
dest: /usr/lib/systemd/system/rocketchat@.service
rocket_chat_tarball_validate_remote_cert: true
rocket_chat_dep_packages: "{{ rocket_chat_dep_packages + ['python3-policycoreutils'] }}"
13 changes: 13 additions & 0 deletions vars/RedHat_8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
rocket_chat_service_update_command: systemctl daemon-reload
rocket_chat_service_template:
src: rocketchat.service.j2
dest: /usr/lib/systemd/system/rocketchat.service
rocket_chat_tarball_validate_remote_cert: false

rocket_chat_dep_packages: "{{ rocket_chat_dep_packages + ['python3-policycoreutils'] }}"

rocket_chat_npm_version: 6.14.10
rocket_chat_npm_path: "{{ rocket_chat_node_prefix }}/bin/npm"
rocket_chat_node_version: 12.18.4
rocket_chat_node_prefix: /usr/local/n/versions/node/{{ rocket_chat_node_version }}