Skip to content

Commit

Permalink
Add an Ursula metadata motd entry
Browse files Browse the repository at this point in the history
This change simply adds a motd entry for all Ursula hosts. This is
Ubuntu-specific (but that's OK, because so is Ursula). Intention is
that this will evolve over time.
  • Loading branch information
craigtracey committed Nov 13, 2013
1 parent 5d1c42c commit 31491d5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
roles/common/templates/etc/motd.tail ident
4 changes: 4 additions & 0 deletions roles/common/tasks/main.yml
Expand Up @@ -32,3 +32,7 @@
- include: ssl.yml
- include: networking.yml
- include: system_tools.yml

# run this last so we only update if run was successful
- name: drop an motd with ursula metadata
action: template src=etc/motd.tail dest=/etc/motd.tail mode=0644
7 changes: 7 additions & 0 deletions roles/common/templates/etc/motd.tail
@@ -0,0 +1,7 @@

Ursula Node Data:
Release: $Id$
Deployed: {{ ansible_date_time['iso8601'] }}
Groups: {{ group_names | join(', ') }}


0 comments on commit 31491d5

Please sign in to comment.