vn-ansible/linux-config-motd.yaml

17 lines
389 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