Managed mirroring with NFS with additional mirror.yml file.

This commit is contained in:
Emiliano Vavassori 2015-10-31 00:55:10 +01:00
parent bb1b7d9e08
commit f5a74d8e3c
3 changed files with 14 additions and 3 deletions

View File

@ -1,4 +1,9 @@
---
- include: ubuntu-mirror.yml
when: ansible_bios_version != "VirtualBox"
when: not use_local_mirror|bool
tags: ubuntu-mirror
- include: local-mirror.yml
when: use_local_mirror|bool
sudo: yes
tags: local-mirror

8
run.sh
View File

@ -2,11 +2,15 @@
echo "Please review ansible hosts settings."
sleep 2
vim hosts
$EDITOR hosts
echo "Please review settings for domain/server settings."
sleep 2
vim domain.yml
$EDITOR domain.yml
echo "Please review mirror settings from mirror.yml."
sleep 2
$EDITOR mirror.yml
# Configure the server machine using Ansible tasks.
ansible-playbook init.yml --ask-pass

View File

@ -1,6 +1,8 @@
---
- hosts: server
vars_files:
- mirror.yml
roles:
- setup
- nethcfg