From 64e21ba2202ea0f042a2b9a603743b90ae59ce89 Mon Sep 17 00:00:00 2001 From: Greg Albrecht Date: Tue, 3 Sep 2024 16:59:03 -0700 Subject: [PATCH] removing ansible dir --- ansible/.vscode/settings.json | 3 - ansible/Makefile | 2 - ansible/roles/aiscot/tasks/ais-catcher.yml | 65 ---------------------- ansible/roles/aiscot/tasks/aiscot.yml | 28 ---------- ansible/roles/aiscot/tasks/main.yml | 23 -------- 5 files changed, 121 deletions(-) delete mode 100644 ansible/.vscode/settings.json delete mode 100644 ansible/Makefile delete mode 100644 ansible/roles/aiscot/tasks/ais-catcher.yml delete mode 100644 ansible/roles/aiscot/tasks/aiscot.yml delete mode 100644 ansible/roles/aiscot/tasks/main.yml diff --git a/ansible/.vscode/settings.json b/ansible/.vscode/settings.json deleted file mode 100644 index 6d2b953..0000000 --- a/ansible/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ansible.python.interpreterPath": "/Users/gba/.pyenv/versions/3.10.4/envs/ansible/bin/python" -} \ No newline at end of file diff --git a/ansible/Makefile b/ansible/Makefile deleted file mode 100644 index e76bb4b..0000000 --- a/ansible/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -aryaaio: - ansible-playbook -i inventory.yml -e '@secret' site.yml -l aryaaio \ No newline at end of file diff --git a/ansible/roles/aiscot/tasks/ais-catcher.yml b/ansible/roles/aiscot/tasks/ais-catcher.yml deleted file mode 100644 index 1ed2feb..0000000 --- a/ansible/roles/aiscot/tasks/ais-catcher.yml +++ /dev/null @@ -1,65 +0,0 @@ -# code: language=ansible -# ais-catcher.yml - Build & Install AIS-catcher. -# -# Copyright Sensors & Signals LLC https://www.snstac.com -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -- name: Extract AIS-catcher source - ansible.builtin.unarchive: - src: "{{ shared_files }}/sea/AIS-catcher-main.zip" - dest: /usr/src - creates: /usr/src/AIS-catcher-main - -- name: Create AIS-catcher build directory - ansible.builtin.file: - path: /usr/src/AIS-catcher-main/build - state: directory - mode: "0755" - -- name: Build AIS-catcher - ansible.builtin.shell: - cmd: | - cmake .. - make - make install - creates: /usr/local/bin/AIS-catcher - chdir: /usr/src/AIS-catcher-main/build - -- name: Copy AIS-catcher systemd config - ansible.builtin.copy: - src: "{{ shared_files }}/sea/AIS-catcher.service" - dest: /lib/systemd/system/ais-catcher.service - mode: "0644" - -- name: Copy AIS-catcher default config - ansible.builtin.copy: - src: "{{ shared_files }}/sea/AIS-catcher.default.conf" - dest: /etc/default/ais-catcher - mode: "0644" - -- name: Add ais-catcher to dialout (USB access) - ansible.builtin.user: - name: aiscatcher - groups: dialout - comment: ais-catcher system user - append: true - system: true - create_home: false - -- name: Enable AIS-catcher service - ansible.builtin.systemd_service: - name: ais-catcher.service - enabled: true - daemon_reload: true diff --git a/ansible/roles/aiscot/tasks/aiscot.yml b/ansible/roles/aiscot/tasks/aiscot.yml deleted file mode 100644 index 7285fbf..0000000 --- a/ansible/roles/aiscot/tasks/aiscot.yml +++ /dev/null @@ -1,28 +0,0 @@ -# code: language=ansible -# aiscot.yml - Install AISCOT. -# -# Copyright Sensors & Signals LLC https://www.snstac.com -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - - -- name: Download AISCOT Debian package - ansible.builtin.get_url: - url: "{{ aiscot_deb_url }}" - dest: /usr/src/{{ aiscot_deb }} - mode: "0644" - -- name: Install AISCOT Debian package - ansible.builtin.apt: - deb: /usr/src/{{ aiscot_deb }} diff --git a/ansible/roles/aiscot/tasks/main.yml b/ansible/roles/aiscot/tasks/main.yml deleted file mode 100644 index 6c113b0..0000000 --- a/ansible/roles/aiscot/tasks/main.yml +++ /dev/null @@ -1,23 +0,0 @@ -# code: language=ansible -# main.yml - Install AISCOT & dependencies. -# -# Copyright Sensors & Signals LLC https://www.snstac.com -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -- name: Include AISCOT - ansible.builtin.include_tasks: aiscot.yml - -- name: Include AIS-Catcher - ansible.builtin.include_tasks: ais-catcher.yml