piccole correzioni all'abilitazione di EPEL. Aggiunto mac2hostname 2.0.0. Aggiunta al provisioning vagrant anche il necessario per un ambiente di compilazione dei pacchetti.
This commit is contained in:
parent
47b7bff5a7
commit
e8263b8999
@ -6,48 +6,55 @@
|
||||
yum: pkg=python-bottle state=present
|
||||
sudo: yes
|
||||
|
||||
- name: Check installazione + versione mac2hostname
|
||||
shell: rpm -q mac2hostname
|
||||
ignore_errors: yes
|
||||
register: check_mac2hostname_pkg
|
||||
changed_when: check_mac2hostname_pkg.rc != 0 or check_mac2hostname_pkg.stdout.find('2.0.0-1') == -1
|
||||
|
||||
- name: Installazione mac2hostname
|
||||
yum: pkg=http://syntaxerrormmm.zapto.org/downloads/rpm/mac2hostname-1.0.0-1.el6.noarch.rpm state=present
|
||||
yum: pkg=http://syntaxerrormmm.zapto.org/downloads/rpm/mac2hostname-2.0.0-1.el6.noarch.rpm state=present
|
||||
when: check_mac2hostname_pkg|changed
|
||||
sudo: yes
|
||||
|
||||
- name: Verifica aggiunta servizi
|
||||
shell: /sbin/e-smith/db configuration show mac2hostname
|
||||
sudo: yes
|
||||
register: chk_mac2hostname
|
||||
changed_when: chk_mac2hostname.rc != 0
|
||||
register: chk_mac2hostname_srv
|
||||
changed_when: chk_mac2hostname_srv.rc != 0
|
||||
ignore_errors: 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
|
||||
when: chk_mac2hostname|changed
|
||||
when: chk_mac2hostname_srv|changed
|
||||
|
||||
- name: Default per NetServer - Cartella defaults
|
||||
shell: mkdir -p /etc/e-smith/db/configuration/defaults/mac2hostname
|
||||
sudo: yes
|
||||
when: chk_mac2hostname|changed
|
||||
when: chk_mac2hostname_srv|changed
|
||||
|
||||
- name: Default per NethServer - Tipo
|
||||
shell: echo "service" > /etc/e-smith/db/configuration/defaults/mac2hostname/type
|
||||
sudo: yes
|
||||
when: chk_mac2hostname|changed
|
||||
when: chk_mac2hostname_srv|changed
|
||||
|
||||
- name: Default per NethServer - Stato
|
||||
shell: echo "enabled" > /etc/e-smith/db/configuration/defaults/mac2hostname/status
|
||||
sudo: yes
|
||||
when: chk_mac2hostname|changed
|
||||
when: chk_mac2hostname_srv|changed
|
||||
|
||||
- name: Aggiunta servizio
|
||||
shell: /sbin/e-smith/signal-event runlevel-adjust
|
||||
sudo: yes
|
||||
when: chk_mac2hostname|changed
|
||||
when: chk_mac2hostname_srv|changed
|
||||
|
||||
- name: Aggiunta servizio di rete e cambio firewall
|
||||
shell: /sbin/e-smith/signal-event firewall-adjust
|
||||
sudo: yes
|
||||
when: chk_mac2hostname|changed
|
||||
when: chk_mac2hostname_srv|changed
|
||||
|
||||
- name: Avvio di mac2hostname
|
||||
shell: service mac2hostname start
|
||||
sudo: yes
|
||||
when: chk_mac2hostname|changed
|
||||
when: chk_mac2hostname_srv|changed
|
||||
|
@ -30,7 +30,7 @@
|
||||
- name: Pulizia e ricaricam. repo
|
||||
shell: yum clean all && yum repolist
|
||||
sudo: yes
|
||||
when: check_epel|failed and epel_enabled|changed
|
||||
when: epel_enabled|changed
|
||||
tags: repo
|
||||
|
||||
- name: Aggiorno il sistema
|
||||
|
@ -12,3 +12,32 @@
|
||||
sudo: yes
|
||||
notify:
|
||||
- interface update
|
||||
|
||||
- name: Aggiungo utente per compilazione pacchetti RPM
|
||||
user:
|
||||
name: makepkg
|
||||
password: $6$rounds=100000$neTGJ5N7Nu5ogCTX$VmVgS9HRZcdczjiNNdQcZzFVQI/3AFwu6MNFOKxGhBRY4VcBOo6GTxhXr0K/jYVFTygjHWsr.teM6RmBzSnz.0
|
||||
shell: /bin/bash
|
||||
state: present
|
||||
sudo: yes
|
||||
|
||||
- name: Preparazione pacchetti per compilazione RPM
|
||||
yum: pkg="{{ item }}" state=present
|
||||
with_items:
|
||||
- '@Development tools'
|
||||
- rpmdevtools
|
||||
- yum-utils
|
||||
- rpmlint
|
||||
sudo: yes
|
||||
|
||||
- name: Copia della chiave pubblica
|
||||
authorized_key:
|
||||
user: makepkg
|
||||
key: "{{ lookup('file', '/Users/syntaxerrormmm/.ssh/id_rsa.pub') }}"
|
||||
state: present
|
||||
sudo: yes
|
||||
|
||||
- name: Creazione directory per il build di RPM
|
||||
shell: rpmdev-setuptree
|
||||
sudo: yes
|
||||
sudo_user: makepkg
|
||||
|
Loading…
x
Reference in New Issue
Block a user