-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
39 additions
and
163 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
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,4 @@ | ||
takserver_rpm: | | ||
You must specify the TAK Server RPM in the | ||
takserver_rpm variable. | ||
This file was deleted.
Oops, something went wrong.
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,7 +1,7 @@ | ||
--- | ||
- name: Enable EPEL repository on CentOS 7 and RHEL 7 | ||
when: ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '7' | ||
become: true | ||
yum: | ||
name: epel-release | ||
state: latest | ||
when: ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '7' |
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,6 +1,6 @@ | ||
--- | ||
- name: Install postgres from yum repository on CentOS 7 and RHEL 7 | ||
when: ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '7' | ||
yum: | ||
name: https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm | ||
state: latest | ||
when: ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '7' |
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,10 +1,10 @@ | ||
--- | ||
- name: Copy TAK Server RPM | ||
copy: | ||
src: takserver-4.7-RELEASE20.noarch.rpm | ||
dest: takserver-4.7-RELEASE20.noarch.rpm | ||
src: "{{ takserver_rpm }}" | ||
dest: "{{ takserver_rpm }}" | ||
|
||
- name: Install TAK Server | ||
yum: | ||
name: takserver-4.7-RELEASE20.noarch.rpm | ||
name: "{{ takserver_rpm }}" | ||
state: latest |
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,29 +1,13 @@ | ||
--- | ||
- name: Install TAK Server | ||
hosts: all | ||
tasks: | ||
- name: Linux | Prerequisite | Increases TCP connection limit | ||
import_tasks: update-ulimit.yml | ||
|
||
- name: Linux | Prerequisite | Update yum cache | ||
import_tasks: yum-update.yml | ||
|
||
- name: Linux | Prerequisite | Install EPEL | ||
import_tasks: install-epel.yml | ||
|
||
- name: Linux | Prerequisite | Update yum cache (after adding EPEL) | ||
import_tasks: yum-update.yml | ||
|
||
- name: PostgreSQL | Install | ||
import_tasks: install-psql.yml | ||
|
||
- name: TAK Server | Install | ||
import_tasks: install-takserver.yml | ||
|
||
- name: TAK Server | Setup DB | ||
import_tasks: setup-takserver-db.yml | ||
|
||
- name: TAK Server | Enable & start service | ||
import_tasks: enable-start-takserver.yml | ||
|
||
|
||
tags: takserver | ||
include_tasks: "{{ item }}" | ||
loop: | ||
- update-ulimit.yml | ||
- update-yum.yml | ||
- install-epel.yml | ||
- update-yum.yml | ||
- install-psql.yml | ||
- install-takserver.yml | ||
- setup-takserver-db.yml | ||
- enable-start-takserver.yml | ||
when: ansible_distribution == "CentOS" |
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,15 +1,9 @@ | ||
--- | ||
- name: Check if takserver_db_setup.done exists | ||
- name: Check if TAK PostgreSQL Database exists | ||
stat: | ||
path: takserver_db_setup.done | ||
register: takserver_db_setup | ||
path: /var/lib/pgsql/10/data/ | ||
register: takserver_db_data | ||
|
||
- name: Setup TAK DB | ||
- name: Setup TAK PostgreSQL Database | ||
shell: /opt/tak/db-utils/takserver-setup-db.sh | ||
when: not takserver_db_setup.stat.exists | ||
|
||
- name: Touch takserver_db_setup.done | ||
file: | ||
path: takserver_db_setup.done | ||
state: touch | ||
when: not takserver_db_setup.stat.exists | ||
when: not takserver_db_data.stat.exists |
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,7 @@ | ||
--- | ||
- name: Update repository index (CentOS) | ||
tags: always | ||
ansible.builtin.yum: | ||
update_cache: true | ||
changed_when: false | ||
when: ansible_distribution == "CentOS" |
This file was deleted.
Oops, something went wrong.