From 69c04cd5bd36b5f89e342cfc3abf416ba1bec6f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=91=D0=B0=D0=BA=D0=B0=D0=BD=D0=BE=D0=B2=D1=81=D0=BA=D0=B8?= =?UTF-8?q?=D0=B9?= Date: Tue, 17 Sep 2024 17:56:04 +0300 Subject: [PATCH] Update integration tests --- tests/integration/targets/authorized_key/tasks/check_path.yml | 1 + tests/integration/targets/authorized_key/tasks/main.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tests/integration/targets/authorized_key/tasks/check_path.yml b/tests/integration/targets/authorized_key/tasks/check_path.yml index 7f1133b..7c1e561 100644 --- a/tests/integration/targets/authorized_key/tasks/check_path.yml +++ b/tests/integration/targets/authorized_key/tasks/check_path.yml @@ -3,6 +3,7 @@ ansible.builtin.copy: dest: "{{ key_path }}" content: "{{ rsa_key_basic }}" + mode: "0600" - name: Add key using path ansible.posix.authorized_key: diff --git a/tests/integration/targets/authorized_key/tasks/main.yml b/tests/integration/targets/authorized_key/tasks/main.yml index 6a22838..525ea3f 100644 --- a/tests/integration/targets/authorized_key/tasks/main.yml +++ b/tests/integration/targets/authorized_key/tasks/main.yml @@ -31,3 +31,6 @@ - name: Test for the management of comments with key ansible.builtin.import_tasks: comments.yml + +- name: Test for specifying key as a path + ansible.builtin.import_tasks: setup_steps.yml