Add custom etc/issue
This commit is contained in:
parent
91f0e853ef
commit
651a353798
@ -12,6 +12,7 @@
|
|||||||
mode: "{{ item.mode }}"
|
mode: "{{ item.mode }}"
|
||||||
loop:
|
loop:
|
||||||
- { src: "hosts", dest: "/etc/hosts", mode: "0644" }
|
- { src: "hosts", dest: "/etc/hosts", mode: "0644" }
|
||||||
|
- { src: "issue", dest: "/etc/issue", mode: "0644" }
|
||||||
- name: Set hostname
|
- name: Set hostname
|
||||||
hostname:
|
hostname:
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
|
3
roles/common/templates/issue
Normal file
3
roles/common/templates/issue
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[31m{{ ansible_distribution }} {{ ansible_distribution_version }}[0m \l
|
||||||
|
Ansible: last run {{ ansible_date_time["date"] }} {{ ansible_date_time["time"] }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user