18 lines
442 B
YAML
18 lines
442 B
YAML
---
|
|
|
|
- hosts: '{{ ip_addr }}'
|
|
become: yes
|
|
become_method: sudo
|
|
gather_facts: yes
|
|
|
|
tasks:
|
|
|
|
- name: "[CONFIG MOTD] Comprobando si es necesario configurar motd"
|
|
debug:
|
|
msg: "No es necesario configurar motd en la máquina"
|
|
when: motd_enabled is not defined or not motd_enabled
|
|
|
|
- name: "[CONFIG MOTD] Config motd"
|
|
import_role:
|
|
name: config-motd
|
|
when: motd_enabled is defined and motd_enabled |