-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from ONLYOFFICE/feature/fix-test
Feature/fix test
- Loading branch information
Showing
14 changed files
with
129 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
skip_list: | ||
- package-latest # Package installs should not use latest | ||
- command-instead-of-shell # Use shell only when shell functionality is required | ||
- no-changed-when |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ galaxy_info: | |
versions: | ||
- "7" | ||
- "8" | ||
- "9" | ||
- name: Ubuntu | ||
versions: | ||
- "trusty" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
--- | ||
- hosts: all | ||
- name: Verify the service is up and running | ||
hosts: all | ||
remote_user: root | ||
become: true | ||
vars: | ||
proto: "{{ lookup('env', 'PROTO') }}" | ||
|
||
tasks: | ||
- name: Wait 30 seconds | ||
ansible.builtin.pause: | ||
seconds: 30 | ||
|
||
- name: "Get health check status on {{ proto }}://localhost/healthcheck/" | ||
uri: | ||
ansible.builtin.uri: | ||
url: "{{ proto }}://localhost/healthcheck/" | ||
return_content: yes | ||
validate_certs: no | ||
return_content: true | ||
validate_certs: false | ||
timeout: 10 | ||
register: healthcheck | ||
failed_when: "'true' not in healthcheck.content" | ||
until: "'true' in healthcheck.content" | ||
retries: 10 | ||
delay: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
- name: Add onlyoffice repo | ||
ansible.builtin.dnf: | ||
name: "{{ onlyoffice_repo }}" | ||
disable_gpg_check: true | ||
become: true | ||
|
||
- name: Install Epel repository (RedHat) | ||
ansible.builtin.dnf: | ||
name: "{{ epel_release }}" | ||
disable_gpg_check: true | ||
state: present | ||
enablerepo: "{{ crb_for_rhel9 }}" | ||
when: ansible_distribution == 'RedHat' | ||
become: true | ||
|
||
- name: Install Epel repository (Not RedHat) | ||
ansible.builtin.dnf: | ||
name: epel-release | ||
state: present | ||
enablerepo: crb | ||
when: ansible_distribution != 'RedHat' | ||
become: true | ||
|
||
- name: Install dependency | ||
ansible.builtin.dnf: | ||
name: "{{ item.name }}" | ||
disable_gpg_check: true | ||
with_items: | ||
- { name: "{{ nginx_repo }}", state: present } | ||
become: true | ||
|
||
- name: Set ds port (if configured) | ||
ansible.builtin.lineinfile: | ||
path: /root/.bashrc | ||
line: export DS_PORT={{ ds_port }} | ||
when: | ||
- ds_port | ||
become: true | ||
|
||
- name: Install documentserver from repo | ||
ansible.builtin.dnf: | ||
name: "{{ package_name }}" | ||
update_cache: true | ||
state: "{{ package_state }}" | ||
become: true | ||
|
||
- name: Install the documentserver by URL | ||
ansible.builtin.dnf: | ||
name: "{{ package_url }}" | ||
state: present | ||
validate_certs: true | ||
disable_gpg_check: true | ||
when: package_url | length > 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
onlyoffice_repo: "https://download.onlyoffice.com/repo/centos/main/noarch/onlyoffice-repo.noarch.rpm" | ||
nginx_repo: "https://nginx.org/packages/rhel/9/x86_64/RPMS/nginx-1.24.0-1.el9.ngx.x86_64.rpm" | ||
msttcore_fonts: "https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm" | ||
epel_release: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm" | ||
crb_for_rhel9: "codeready-builder-for-rhel-9-{{ ansible_architecture }}-rpms" |