40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
---
|
|
# Installa e configura il servizio per rinominare il client
|
|
# Grazie per il servizio a Enrico Bacis
|
|
|
|
- name: Installazione dipendenze Python
|
|
yum: pkg=python-bottle state=present
|
|
sudo: yes
|
|
|
|
- name: Installazione mac2hostname
|
|
yum: pkg=http://syntaxerrormmm.zapto.org/downloads/rpm/mac2hostname-1.0.0-1.el6.noarch.rpm state=present
|
|
sudo: yes
|
|
|
|
- name: Aggiungo il servizio ai servizi gestiti da NethServer
|
|
shell: /sbin/e-smith/db configuration set mac2hostname service status enabled TCPPort 3000 access private
|
|
sudo: yes
|
|
|
|
- name: Default per NetServer - Cartella defaults
|
|
shell: mkdir -p /etc/e-smith/db/configuration/defaults/mac2hostname
|
|
sudo: yes
|
|
|
|
- name: Default per NethServer - Tipo
|
|
shell: echo "service" > /etc/e-smith/db/configuration/defaults/mac2hostname/type
|
|
sudo: yes
|
|
|
|
- name: Default per NethServer - Stato
|
|
shell: echo "enabled" > /etc/e-smith/db/configuration/defaults/mac2hostname/status
|
|
sudo: yes
|
|
|
|
- name: Aggiunta servizio
|
|
shell: /sbin/e-smith/signal-event runlevel-adjust
|
|
sudo: yes
|
|
|
|
- name: Aggiunta servizio di rete e cambio firewall
|
|
shell: /sbin/e-smith/signal-event firewall-adjust
|
|
sudo: yes
|
|
|
|
- name: Avvio di mac2hostname
|
|
shell: service mac2hostname start
|
|
sudo: yes
|