Advertisement
Guest User

Untitled

a guest
Oct 20th, 2022
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. ---
  2. # tasks file for upgradeOffline
  3. - name: Check contents for emptiness
  4. ansible.builtin.debug:
  5. msg: "{{ ansible_ssh_host }} IS CONNECTED TO THE INTERNET!"
  6. when: ping.content != ""
  7.  
  8. - name: Install latest version of "open-vm-tools"
  9. ansible.builtin.apt:
  10. name: open-vm-tools
  11. state: latest
  12. update_cache: yes
  13. become: yes
  14. when: ping.content != ""
  15. register: installed
  16.  
  17. - name: Check contents for emptiness
  18. ansible.builtin.debug:
  19. msg: "{{ ansible_ssh_host }} WAS APT-GET ERROR! {{ installed }}"
  20. when: installed.changed == false | bool
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement