Fix tasks to avoid ansible warning about raw module environment (#3545)

pull/3565/head
Erwan Miran 2018-10-20 16:13:54 +02:00 committed by k8s-ci-robot
parent 127969d65f
commit 3b787123e3
7 changed files with 10 additions and 1 deletions

View File

@ -2,6 +2,7 @@
- name: Bootstrap | Check if bootstrap is needed
raw: stat /opt/bin/.bootstrapped
register: need_bootstrap
environment: {}
failed_when: false
changed_when: false
tags:

View File

@ -10,12 +10,14 @@
- python
- pip
- dbus-daemon
environment: {}
tags: facts
- name: Bootstrap | Install python 2.x, pip, and dbus
raw:
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal python-pip dbus
environment: {}
when:
need_bootstrap.results | map(attribute='rc') | sort | last | bool

View File

@ -7,10 +7,12 @@
changed_when: false
with_items:
- python
environment: {}
tags: facts
- name: Install python on fedora
raw: "dnf install --assumeyes --quiet python"
environment: {}
when: need_bootstrap.results | map(attribute='rc') | sort | last | bool
- name: Install required python packages

View File

@ -15,7 +15,7 @@
failed_when: false
changed_when: false
with_items: "{{ubuntu_packages}}"
environment: {}
tags:
- facts
@ -23,6 +23,7 @@
raw:
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y {{ubuntu_packages | join(" ")}}
environment: {}
when:
- need_bootstrap.results | map(attribute='rc') | sort | last | bool

View File

@ -3,6 +3,7 @@
raw: cat /etc/os-release
register: os_release
changed_when: false
environment: {}
- name: Set bootstrap_os
set_fact:

View File

@ -7,6 +7,7 @@
failed_when: false
changed_when: false
check_mode: no
environment: {}
when: download_container
- name: container_download | Create dest directory for saved/loaded container images

View File

@ -15,6 +15,7 @@
failed_when: false
changed_when: false
check_mode: no
environment: {}
when: not download_always_pull
- set_fact: