From a1ee1c0f772e85e3bd45f55b60f5decef2120ffe Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 12 Nov 2020 13:43:12 +0100 Subject: [PATCH] Hide changes to temporary files --- tasks/install.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/install.yml b/tasks/install.yml index 0ca10c3..2b7f6fd 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -70,12 +70,14 @@ tempfile: state: directory register: sshd_test_hostkey + changed_when: False when: - __sshd_hostkeys_from_config | from_json == [] - sshd_config_file != "/etc/ssh/sshd_config" - name: Generate temporary hostkey shell: "ssh-keygen -q -t rsa -f {{ sshd_test_hostkey.path }}/rsa_key -C '' -N ''" + changed_when: False when: sshd_test_hostkey.path is defined - name: Create the configuration file @@ -102,6 +104,7 @@ file: path: "{{ sshd_test_hostkey.path }}" state: absent + changed_when: False when: sshd_test_hostkey.path is defined - name: Install systemd service files