Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- # tasks file for upgradeOffline
- - name: Check contents for emptiness
- ansible.builtin.debug:
- msg: "{{ ansible_ssh_host }} IS CONNECTED TO THE INTERNET!"
- when: ping.content != ""
- - name: Install latest version of "open-vm-tools"
- ansible.builtin.apt:
- name: open-vm-tools
- state: latest
- update_cache: yes
- become: yes
- when: ping.content != ""
- register: installed
- - name: Check contents for emptiness
- ansible.builtin.debug:
- msg: "{{ ansible_ssh_host }} WAS APT-GET ERROR! {{ installed }}"
- when: installed.changed == false | bool
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement