From 85bacc0a0c91ce3ce4fd4d26d3a3ed7b2db40b93 Mon Sep 17 00:00:00 2001 From: ogrechko Date: Fri, 2 Oct 2026 12:45:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20playbooks/install=5Fsoftware=5Fwin.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playbooks/install_software_win.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/playbooks/install_software_win.yml b/playbooks/install_software_win.yml index da97cf6..703933a 100644 --- a/playbooks/install_software_win.yml +++ b/playbooks/install_software_win.yml @@ -99,6 +99,21 @@ creates: '{{ install_dir }}\bin\FreeCAD.exe' register: inst failed_when: inst.rc not in [0, 3010] + become: yes + become_method: runas + become_user: "{{ win_user }}" + become_password: "{{ win_pass }}" + no_log: true + + - name: Verify FreeCAD.exe exists + ansible.windows.win_stat: + path: '{{ install_dir }}\bin\FreeCAD.exe' + register: fc_check + + - name: Fail if FreeCAD was not installed + ansible.builtin.fail: + msg: "Установщик завершился, но {{ install_dir }}\\bin\\FreeCAD.exe не найден" + when: not fc_check.stat.exists always: - name: Remove local installer copy ansible.windows.win_file: