vn-ansible/linux-config-update-and-upg...

18 lines
480 B
YAML

---
- hosts: '{{ ip_addr }}'
become: yes
become_method: sudo
gather_facts: yes
tasks:
- name: "[CONFIG UPDATE] Comprobando si es necesario realizar update "
debug:
msg: "No es necesario realizar update en la máquina"
when: update_enabled is not defined or not update_enabled
- name: "[CONFIG UPDATE] Config update"
import_role:
name: config-update-and-upgrade-packages
when: update_enabled is defined and update_enabled