update..
This commit is contained in:
@ -36,7 +36,7 @@ radiotrabajandoparacristoirmp\.com$
|
||||
group-hire\.com$
|
||||
|
||||
# Erinnerung: Überzahlung entdeckt – Ihre Rückerstattung wartet!
|
||||
mtasv\.net$
|
||||
#mtasv\.net$
|
||||
|
||||
# edge.toprains.shop:w
|
||||
edge\.toprains\.shop$
|
||||
|
@ -28,7 +28,7 @@
|
||||
45.132.181.0/24
|
||||
|
||||
# Erinnerung: Überzahlung entdeckt – Ihre Rückerstattung wartet!
|
||||
50.31.205.0/24
|
||||
#50.31.205.0/24
|
||||
|
||||
# edge.toprains.shop
|
||||
51.89.16.112
|
||||
|
@ -135,6 +135,16 @@
|
||||
tags:
|
||||
- apt-initial-install
|
||||
|
||||
- name: (apt.yml) Initial install ubuntu packages (noble)
|
||||
apt:
|
||||
name: "{{ apt_initial_install_ubuntu_noble }}"
|
||||
state: "{{ apt_install_state }}"
|
||||
when:
|
||||
- ansible_facts['distribution'] == "Ubuntu"
|
||||
- ansible_facts['distribution_release'] == "noble"
|
||||
tags:
|
||||
- apt-initial-install
|
||||
|
||||
|
||||
# ---
|
||||
# Microcode
|
||||
|
@ -1,5 +1,9 @@
|
||||
---
|
||||
|
||||
- import_tasks: show.yml
|
||||
tags:
|
||||
- show
|
||||
|
||||
# tags supported inside basic.yml
|
||||
#
|
||||
# timezone
|
||||
|
@ -9,10 +9,17 @@
|
||||
path: /etc/motd.ORIG
|
||||
register: motd_orig_exist
|
||||
|
||||
- name: (motd.yml) Check if /etc/motd exist
|
||||
stat:
|
||||
path: /etc/motd
|
||||
register: motd_exist
|
||||
|
||||
|
||||
- name: (motd.yml) Backup existing file /etc/motd
|
||||
command: cp -a /etc/motd /etc/motd.ORIG
|
||||
when: motd_orig_exist.stat.exists == False
|
||||
when:
|
||||
- motd_exist.stat.exists == True
|
||||
- motd_orig_exist.stat.exists == False
|
||||
|
||||
- name: (motd.yml) create /etc/motd
|
||||
shell: figlet {{ ansible_hostname }} > /etc/motd
|
||||
|
7
roles/common/tasks/show.yml
Normal file
7
roles/common/tasks/show.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
|
||||
- name: Show hostname
|
||||
debug:
|
||||
msg: "Host: {{ ansible_fqdn | split('.') | first }} FQDN: {{ ansible_fqdn.split('.')[0] }}.{{ ansible_fqdn.split('.')[1] | default('NONE') }}.{{ ansible_fqdn.split('.')[2] | default('NONE') }}"
|
||||
# msg: "Host: {{ ansible_fqdn | split('.') | first }} FQDN: {{ ansible_fqdn.split('.')[0] | join( '.') }} | {{ join ( ansible_fqdn.split('.')[1] ) }}"
|
||||
|
Reference in New Issue
Block a user