Browse Source

Add role for hostname

Markus Lindenberg 9 years ago
parent
commit
2323157bfc
2 changed files with 6 additions and 0 deletions
  1. 1 0
      playbooks/common.yml
  2. 5 0
      roles/internal/ffdo.hostname/tasks/main.yml

+ 1 - 0
playbooks/common.yml

@@ -2,5 +2,6 @@
 
 - hosts: all
   roles:
+  - ffdo.hostname
   - ffdo.resolvconf
   - ffdo.authentication

+ 5 - 0
roles/internal/ffdo.hostname/tasks/main.yml

@@ -0,0 +1,5 @@
+---
+# tasks file for ffdo.hostname
+
+- name: Ensure hostname is set
+  hostname: name={{ inventory_hostname_short }}