Обновить playbooks/install_software_win.yml
This commit is contained in:
1 parent
bcea6d7296
commit
85bacc0a0c
1 file changed
+15
@@ -99,6 +99,21 @@
|
|||||||
creates: '{{ install_dir }}\bin\FreeCAD.exe'
|
creates: '{{ install_dir }}\bin\FreeCAD.exe'
|
||||||
register: inst
|
register: inst
|
||||||
failed_when: inst.rc not in [0, 3010]
|
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:
|
always:
|
||||||
- name: Remove local installer copy
|
- name: Remove local installer copy
|
||||||
ansible.windows.win_file:
|
ansible.windows.win_file:
|
||||||
|
|||||||
Reference in new issue
Block a user