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