From 7cb129d6b6b527393430c8df1a1b636a15594ace Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sat, 21 Oct 2023 21:02:00 +0200 Subject: [PATCH] Improve gen_bootstrap.yml. --- gen_bootstrap.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gen_bootstrap.yml b/gen_bootstrap.yml index 4ac8ee9..17df5d9 100755 --- a/gen_bootstrap.yml +++ b/gen_bootstrap.yml @@ -48,3 +48,12 @@ ansible.builtin.get_url: url: "https://{{ CLOUD_SERVER }}/s/{{ DOC_KEY }}/download" dest: /mnt/volumes/tmp_duplicity_workdir/data/Documentation.md + + - name: Copy new documentation + ansible.builtin.copy: + src: /mnt/volumes/tmp_duplicity_workdir/data/Documentation.md + dest: /mnt/volumes/tmp_duplicity_workdir/data/secrets/bootstrap/Documentation.md + register: copy_output + + - debug: msg="file changed" + when: copy_output is changed