Explorar o código

Add role for hostname

Markus Lindenberg %!s(int64=9) %!d(string=hai) anos
pai
achega
2323157bfc
Modificáronse 2 ficheiros con 6 adicións e 0 borrados
  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 }}