feat: manage motd for alpine
This commit is contained in:
parent
726aa54dbb
commit
24ec59e4c0
3 changed files with 34 additions and 1 deletions
|
|
@ -25,7 +25,6 @@
|
|||
# motd
|
||||
- name: "motd"
|
||||
ansible.builtin.import_tasks: "motd.yaml"
|
||||
when: "ansible_os_family == 'Debian'"
|
||||
tags: "motd"
|
||||
|
||||
# cron jobs
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
excludes:
|
||||
- "10-custom-motd"
|
||||
register: "old_motd"
|
||||
when: "ansible_os_family == 'Debian'"
|
||||
|
||||
# remove old custom motd files
|
||||
- name: "motd - cleanup directory"
|
||||
|
|
@ -37,3 +38,13 @@
|
|||
group: "root"
|
||||
mode: "0755"
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
|
||||
# configure motd
|
||||
- name: "motd - siempie - alpine"
|
||||
ansible.builtin.template:
|
||||
src: "templates/motd/alpine-motd.sh.j2"
|
||||
dest: "/etc/profile.d/motd.sh"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0755"
|
||||
when: 'ansible_os_family == "Alpine"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue