vn-ansible/linux-config-motd.yaml

18 lines
442 B
YAML
Raw Normal View History

2024-02-12 09:54:04 +00:00
---
- hosts: '{{ ip_addr }}'
become: yes
become_method: sudo
gather_facts: yes
tasks:
2024-02-15 11:37:59 +00:00
- 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
2024-02-12 09:54:04 +00:00
- name: "[CONFIG MOTD] Config motd"
import_role:
2024-02-15 17:03:48 +00:00
name: config-motd
when: motd_enabled is defined and motd_enabled