mirror of
https://github.com/ruanbekker/rpi-ansible.git
synced 2025-04-19 17:01:38 +02:00
add motd; fix warning in ufw enablement
This commit is contained in:
parent
0fd025ee6f
commit
c780cb96f2
@ -89,6 +89,15 @@
|
|||||||
- include: darshan-dev.yml
|
- include: darshan-dev.yml
|
||||||
when: "'darshan_dev' in myconfig and myconfig.darshan_dev"
|
when: "'darshan_dev' in myconfig and myconfig.darshan_dev"
|
||||||
|
|
||||||
|
# Install motd
|
||||||
|
- name: install MOTD
|
||||||
|
template:
|
||||||
|
src: etc/motd
|
||||||
|
dest: /etc/motd
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
|
|
||||||
# Configure firewall
|
# Configure firewall
|
||||||
- name: allow SSH through UFW
|
- name: allow SSH through UFW
|
||||||
ufw:
|
ufw:
|
||||||
@ -132,7 +141,7 @@
|
|||||||
|
|
||||||
- name: enable UFW
|
- name: enable UFW
|
||||||
ufw:
|
ufw:
|
||||||
state: enabled
|
state: "enabled"
|
||||||
logging: yes
|
logging: "on"
|
||||||
tags:
|
tags:
|
||||||
- ufw
|
- ufw
|
||||||
|
7
roles/common/templates/etc/motd
Normal file
7
roles/common/templates/etc/motd
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
{{ myconfig.hostname }}
|
||||||
|
{{ ansible_processor_count }} core{% if ansible_processor_count > 1 %}s
|
||||||
|
{% endif %}
|
||||||
|
{{ ansible_memtotal_mb }} MB RAM
|
||||||
|
{{ ansible_lsb.description }}
|
||||||
|
--------------------------------------------------------------------------------
|
Loading…
x
Reference in New Issue
Block a user