Previsto task di caricamento del file delle impostazioni di dominio da ansiblehelper su server. Messa come dipendenza ad init.

This commit is contained in:
Emiliano Vavassori 2015-07-08 02:00:16 +02:00
parent 1de3032c30
commit 7e2deea3bf
4 changed files with 18 additions and 0 deletions

3
roles/init/meta/main.yml Normal file
View File

@ -0,0 +1,3 @@
---
dependencies:
- { role: prereq, tags: [ 'prereq' ] }

View File

@ -21,5 +21,6 @@
mode: 0440
create: yes
state: present
validate: "visudo -cf %s"
# TODO: implementare download e installazione della chiave pubblica

View File

@ -0,0 +1,3 @@
---
- include: prereq.yml
tags: prereq

View File

@ -0,0 +1,11 @@
---
- name: Download impostazioni dominio
get_url:
url: "http://{{ ansible_facts.ansible_default_ipv4.gateway }}:3001/domain"
dest: /etc/domain.yml
owner: root
mode: 0644
- name: Carico le variabili di dominio nel playbook per l'uso
include_vars: /etc/domain.yml