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