Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2021
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. ---
  2. -
  3. hosts: goude.ucl.ac.uk
  4. tasks:
  5. -
  6. name: "Copying 7zip to remote host"
  7. win_copy:
  8. dest: "C:\\temp\\"
  9. src: /home/software/windows/7z1900-x64.exe
  10. -
  11. name: "Installing 7zip"
  12. when: "ACTION == \"install\""
  13. win_package:
  14. arguments: /S
  15. path: "C:\\temp\\7z1900-x64.exe"
  16. product_id: 7-zip
  17. state: present
  18. -
  19. name: "Uninstalling 7zip"
  20. when: "ACTION == \"uninstall\""
  21. win_package:
  22. arguments: /S
  23. path: "C:\\Program Files\\7-Zip\\Uninstall.exe"
  24. product_id: 7-zip
  25. state: absent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement