d587307aaf
Split base playbook into two plays The update apt-cache handler from base-repos needs to fire before we run base-server. Split into two plays so that the handler will fire. Fix use of first_found For include_vars, using the lookup version of first_found requires being explicit about the path to search in as well. We also need to use query together with loop to get skip to work right. Extract the list of file locations we look for for distro and platform specific variables into a variable so that we can reuse it instead of copy-pasta. The vim package is vim-nox on ubuntu and vim-minimal on debian. ntpdate only needs to be enabled on boot, it does not need to be immediately started. At least, that's what the old puppet was doing and trying to start it immediately breaks centos integration tests. emacs-nox is emacs23-nox on trusty. Change-Id: If3db276a5f6a8f76d7ce8635da8d2cbc316af341 Depends-On: https://review.openstack.org/588326
10 lines
254 B
YAML
10 lines
254 B
YAML
- name: Set up additional repos
|
|
include_tasks: "{{ item }}"
|
|
vars:
|
|
params:
|
|
files:
|
|
- "{{ ansible_facts.distribution }}.yaml"
|
|
- "{{ ansible_facts.os_family }}.yaml"
|
|
skip: true
|
|
loop: "{{ query('first_found', params) }}"
|