From d03aa86378f981cb4e6ffa5fabe9371c8d952994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Fele-=C5=BDor=C5=BE?= Date: Wed, 10 Sep 2025 14:21:31 +0200 Subject: [PATCH] Add python3-cryptography --- roles/VP-63775/meta/main.yml | 1 + roles/cryptography/tasks/main.yml | 4 ++++ roles/cryptography/tasks/main_lin.yml | 5 +++++ roles/cryptography/tasks/main_win.yml | 2 ++ 4 files changed, 12 insertions(+) create mode 100644 roles/cryptography/tasks/main.yml create mode 100644 roles/cryptography/tasks/main_lin.yml create mode 100644 roles/cryptography/tasks/main_win.yml diff --git a/roles/VP-63775/meta/main.yml b/roles/VP-63775/meta/main.yml index 9185ffc..ea90757 100644 --- a/roles/VP-63775/meta/main.yml +++ b/roles/VP-63775/meta/main.yml @@ -14,4 +14,5 @@ dependencies: - role: jdk - role: jupyter - role: pycharm + - role: cryptography - role: flask diff --git a/roles/cryptography/tasks/main.yml b/roles/cryptography/tasks/main.yml new file mode 100644 index 0000000..66e93fe --- /dev/null +++ b/roles/cryptography/tasks/main.yml @@ -0,0 +1,4 @@ +- import_tasks: main_win.yml + when: ansible_os_family == 'Windows' +- import_tasks: main_lin.yml + when: ansible_os_family == 'Debian' \ No newline at end of file diff --git a/roles/cryptography/tasks/main_lin.yml b/roles/cryptography/tasks/main_lin.yml new file mode 100644 index 0000000..eb361bb --- /dev/null +++ b/roles/cryptography/tasks/main_lin.yml @@ -0,0 +1,5 @@ +- name: Install python-cryptography + apt: + name: + - python3-cryptography + state: latest diff --git a/roles/cryptography/tasks/main_win.yml b/roles/cryptography/tasks/main_win.yml new file mode 100644 index 0000000..b5759ef --- /dev/null +++ b/roles/cryptography/tasks/main_win.yml @@ -0,0 +1,2 @@ +- name: Install python3-cryptography + win_command: pip install cryptography