2023-12-19 14:43:06 +00:00
|
|
|
---
|
|
|
|
|
2023-12-19 14:52:18 +00:00
|
|
|
- hosts: '{{ ip_addr }}'
|
2023-12-19 14:43:06 +00:00
|
|
|
become: yes
|
|
|
|
become_method: sudo
|
|
|
|
gather_facts: yes
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
2024-02-15 10:45:25 +00:00
|
|
|
- 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
|
|
|
|
|
2023-12-19 14:43:06 +00:00
|
|
|
- name: "[CONFIG UPDATE] Config update"
|
|
|
|
import_role:
|
2024-02-15 17:10:07 +00:00
|
|
|
name: config-update-and-upgrade-packages
|
|
|
|
when: update_enabled is defined and update_enabled
|