paulbsd-salt/states/motd/install.sls
Paul Lecuq a3b02771a4
All checks were successful
continuous-integration/drone/push Build is passing
created templates folder on each state
2023-03-11 10:08:26 +01:00

17 lines
282 B
Plaintext

---
motd-pkg:
pkg.installed:
- name: figlet
{% if salt["file.is_link"]("/etc/motd") %}
motd-file-link-delete:
file.absent:
- name: /etc/motd
{% endif %}
motd-file:
file.managed:
- name: /etc/motd
- source: salt://motd/templates/motd.j2
- template: jinja