Commit c5f29f89 authored by Chris's avatar Chris
Browse files

Adding the 'bootstrap' tag to the bootstrap.yml task list

parent bb7aeca0
---
- name: Check if Python is installed
raw: test -x /usr/bin/python
changed_when: false
failed_when: false
register: result
- block:
- name: Check if Python is installed
raw: test -x /usr/bin/python
changed_when: false
failed_when: false
register: result
- name: Install Python
raw: >
(test -e /etc/redhat-release && yum install -y python)
|| (test -e /etc/debian_version && apt-get -y update && apt-get install -y python)
when: result.rc == 1
- name: Install Python
raw: >
(test -e /etc/redhat-release && yum install -y python)
|| (test -e /etc/debian_version && apt-get -y update && apt-get install -y python)
when: result.rc == 1
- name: Gather facts to determine host OS
setup:
gather_subset: min
- name: Gather facts to determine host OS
setup:
gather_subset: min
- name: Gather OS specific vars
include_vars: '{{ item }}'
with_first_found:
- vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml
- vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_release | lower }}.yml
- vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml
- vars/{{ ansible_distribution | lower }}.yml
- vars/{{ ansible_os_family | lower }}.yml
- defaults/main.yml
- name: Gather OS specific vars
include_vars: '{{ item }}'
with_first_found:
- vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml
- vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_release | lower }}.yml
- vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml
- vars/{{ ansible_distribution | lower }}.yml
- vars/{{ ansible_os_family | lower }}.yml
- defaults/main.yml
- include_tasks: '{{ item }}'
with_first_found:
- tasks/bootstrap_{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml
- tasks/bootstrap_{{ ansible_distribution | lower }}-{{ ansible_distribution_release | lower }}.yml
- tasks/bootstrap_{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml
- tasks/bootstrap_{{ ansible_distribution | lower }}.yml
- tasks/bootstrap_{{ ansible_os_family | lower }}.yml
- include_tasks: '{{ item }}'
with_first_found:
- tasks/bootstrap_{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml
- tasks/bootstrap_{{ ansible_distribution | lower }}-{{ ansible_distribution_release | lower }}.yml
- tasks/bootstrap_{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml
- tasks/bootstrap_{{ ansible_distribution | lower }}.yml
- tasks/bootstrap_{{ ansible_os_family | lower }}.yml
tags: bootstrap
...
# vi: set ts=2 sts=2 sw=2 et ft=yaml:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment