From 34791af62e30dc56521f5b4bc1954cc2331acb1a Mon Sep 17 00:00:00 2001
From: Daniel M <daniel.q.mueller@stud.h-da.de>
Date: Tue, 1 Feb 2022 19:56:13 +0100
Subject: [PATCH] Copy telesec root cert to etc/wpa_supplicant

---
 README.md                                         |   1 +
 local.yml                                         |   1 +
 .../files/T-TeleSec_GlobalRoot_Class_2.crt        | Bin 0 -> 967 bytes
 roles/telesec-globalroot-ca/tasks/main.yml        |   8 ++++++++
 4 files changed, 10 insertions(+)
 create mode 100644 roles/telesec-globalroot-ca/files/T-TeleSec_GlobalRoot_Class_2.crt
 create mode 100644 roles/telesec-globalroot-ca/tasks/main.yml

diff --git a/README.md b/README.md
index c1e1a9e..bb427e1 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,7 @@
 - [local.yml](./local.yml): The main playbook file, can be seen as the entry point
   - [roles](./roles): Contains multiple roles (can be seen as small task specific playbooks). The 
     roles are called in the [local.yml](./local.yml)
+    - [telesec-globalroot-ca](./roles/telesec-globalroot-ca/tasks/main.yml): Install the root ca certificate for eduroam to `/etc/wpa_supplicant/T-TeleSec_GlobalRoot_Class_2.crt`
     - [git-clone](./roles/git-clone/tasks/main.yml): Clone the [ai-at-the-edge](https://code.fbi.h-da.de/pse-ai-at-the-edge/ai-at-the-edge) repository into the notebooks directory
     - [jupyter-lab](./roles/jupyter-lab/tasks/main.yml): Install jupyter-lab and configure it with a systemd service and autostart
     - [misc-applications](./roles/misc-applications/tasks/main.yml): Install additional extra applications
diff --git a/local.yml b/local.yml
index 88e77eb..936d19d 100644
--- a/local.yml
+++ b/local.yml
@@ -29,6 +29,7 @@
           - python3-venv
 
   roles:
+    - telesec-globalroot-ca
     - git-clone
     - jupyter-lab
     - ml-python-packages
diff --git a/roles/telesec-globalroot-ca/files/T-TeleSec_GlobalRoot_Class_2.crt b/roles/telesec-globalroot-ca/files/T-TeleSec_GlobalRoot_Class_2.crt
new file mode 100644
index 0000000000000000000000000000000000000000..0911a562934374fbb203efb9d9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>0EQ-#OjoOzQz0JNY6F6ed~gx-YT1qzl|Hpo}67P>CdX(C%iE45CDC}ZWaIl

literal 0
HcmV?d00001

diff --git a/roles/telesec-globalroot-ca/tasks/main.yml b/roles/telesec-globalroot-ca/tasks/main.yml
new file mode 100644
index 0000000..12ef373
--- /dev/null
+++ b/roles/telesec-globalroot-ca/tasks/main.yml
@@ -0,0 +1,8 @@
+---
+# roles/telesec-globalroot-ca
+
+- name: Copy requirements.txt to remote fs
+  become: true
+  copy:
+    src: files/T-TeleSec_GlobalRoot_Class_2.crt
+    dest: /etc/wpa_supplicant/T-TeleSec_GlobalRoot_Class_2.crt
-- 
GitLab