From 2d9729905131db5eea1e84669522453d12e48aac Mon Sep 17 00:00:00 2001 From: caowei Date: Tue, 20 Sep 2016 10:31:40 +0800 Subject: [PATCH] Delete extra spaces in baremetal install.yml TrivialFix Change-Id: I2004b234520aa16ce2a76d8996cfb9d1a8174439 --- ansible/roles/baremetal/tasks/install.yml | 98 +++++++++++------------ 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/ansible/roles/baremetal/tasks/install.yml b/ansible/roles/baremetal/tasks/install.yml index c1593f85fd..3c9b0f5394 100644 --- a/ansible/roles/baremetal/tasks/install.yml +++ b/ansible/roles/baremetal/tasks/install.yml @@ -1,59 +1,59 @@ --- -- name: update apt cache - command: apt-get update - become: True - when: ansible_os_family == 'Debian' +- name: update apt cache + command: apt-get update + become: True + when: ansible_os_family == 'Debian' -- name: install apt packages - package: name={{item}} state=present - become: True - with_items: "{{ debian_pkg_install }}" - when: ansible_os_family == 'Debian' +- name: install apt packages + package: name={{item}} state=present + become: True + with_items: "{{ debian_pkg_install }}" + when: ansible_os_family == 'Debian' -- name: install wily kernel - package: name=linux-generic-lts-wily state=latest - register: kernel_updated - become: True - when: - - ansible_distribution|lower == "ubuntu" | bool - - ansible_distribution_release|lower == "trusty" | bool +- name: install wily kernel + package: name=linux-generic-lts-wily state=latest + register: kernel_updated + become: True + when: + - ansible_distribution|lower == "ubuntu" | bool + - ansible_distribution_release|lower == "trusty" | bool -- name: set reboot required - set_fact: - reboot_required: True - when: - - kernel_updated is defined - - kernel_updated.changed +- name: set reboot required + set_fact: + reboot_required: True + when: + - kernel_updated is defined + - kernel_updated.changed -- name: install deltarpm packages - package: name={{item}} state=installed - become: True - with_items: - - deltarpm - when: ansible_os_family == 'RedHat' +- name: install deltarpm packages + package: name={{item}} state=installed + become: True + with_items: + - deltarpm + when: ansible_os_family == 'RedHat' -- name: install yum packages - package: name={{item}} state=present - become: True - with_items: "{{ redhat_pkg_install }}" - when: ansible_os_family == 'RedHat' +- name: install yum packages + package: name={{item}} state=present + become: True + with_items: "{{ redhat_pkg_install }}" + when: ansible_os_family == 'RedHat' -- name: install pip - easy_install: name=pip - become: True +- name: install pip + easy_install: name=pip + become: True -- name: Install docker-py - pip: name=docker-py state=latest - become: True +- name: Install docker-py + pip: name=docker-py state=latest + become: True -- name: remove packages - package: name={{item}} state=absent - with_items: "{{ ubuntu_pkg_removals }}" - become: True - when: ansible_distribution|lower == "ubuntu" | bool +- name: remove packages + package: name={{item}} state=absent + with_items: "{{ ubuntu_pkg_removals }}" + become: True + when: ansible_distribution|lower == "ubuntu" | bool -- name: remove packages - package: name={{item}} state=absent - with_items: "{{ redhat_pkg_removals }}" - become: True - when: ansible_os_family == 'RedHat' +- name: remove packages + package: name={{item}} state=absent + with_items: "{{ redhat_pkg_removals }}" + become: True + when: ansible_os_family == 'RedHat'