adds motd task
This commit is contained in:
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
[submodule "files/motd"]
|
[submodule "motd"]
|
||||||
path = files/motd
|
path = tasks/motd
|
||||||
url = gitea@git.hoekveen.net:mark/motd.git
|
url = gitea@git.hoekveen.net:mark/motd.git
|
||||||
|
|||||||
-1
Submodule files/motd deleted from 9614418079
@@ -32,6 +32,7 @@
|
|||||||
- (inventory_hostname in groups['home'] and (item in groups['home'] or item in groups['cloud'])) or
|
- (inventory_hostname in groups['home'] and (item in groups['home'] or item in groups['cloud'])) or
|
||||||
(inventory_hostname not in groups['home'] and item in groups['cloud'])
|
(inventory_hostname not in groups['home'] and item in groups['cloud'])
|
||||||
with_items: "{{ groups.all }}"
|
with_items: "{{ groups.all }}"
|
||||||
|
- import_tasks: tasks/motd.yml
|
||||||
- name: Update Debian hosts
|
- name: Update Debian hosts
|
||||||
hosts: debian
|
hosts: debian
|
||||||
become: true
|
become: true
|
||||||
|
|||||||
Submodule
+1
Submodule tasks/motd added at 3e07a8e03f
@@ -0,0 +1,6 @@
|
|||||||
|
- name: Copy motd
|
||||||
|
copy:
|
||||||
|
content: "{{ lookup('file', 'motd/titles/' + inventory_hostname, errors='ignore') | default('') }}"
|
||||||
|
dest: /etc/motd
|
||||||
|
mode: "0644"
|
||||||
|
ignore_errors: true
|
||||||
Reference in New Issue
Block a user