Managing remote mirror and mirrorpath as variables at domain.yml level.

This commit is contained in:
Emiliano Vavassori 2016-02-16 15:16:55 +01:00
parent c7e474c80e
commit 1e9e6f61f6
2 changed files with 15 additions and 5 deletions

View File

@ -1,10 +1,5 @@
---
- name: Configuring executive mirror path
set_fact:
execmirrorpath: "{{ ansible_local.domain.mirrorpath }}"
when: ansible_local.domain.mirror_mode == 'nfs' or ansible_local.domain.mirror_mode == 'local'
- include: preseed.yml
tags:
- preseed

View File

@ -1,4 +1,19 @@
---
- name: Configuring executive mirror path
set_fact:
execmirrorpath: "{{ ansible_local.domain.mirrorpath }}"
when: ansible_local.domain.mirror_mode == 'nfs' or ansible_local.domain.mirror_mode == 'local'
- name: Overriding remote_mirror with defaults from domain.yml
set_fact:
remote_mirror: "{{ ansible_local.domain.remote_mirror }}"
when: ansible_local.domain.remote_mirror is defined
- name: Overriding remote_mirrorpath with defaults from domain.yml
set_fact:
remote_mirror: "{{ ansible_local.domain.remote_mirrorpath }}"
when: ansible_local.domain.remote_mirrorpath is defined
- name: Verifica configurazione ibay preseed
shell: /sbin/e-smith/db accounts show ks
register: chk_ks_created