Skip to content
Snippets Groups Projects
Commit 3b787123 authored by Erwan Miran's avatar Erwan Miran Committed by k8s-ci-robot
Browse files

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

parent 127969d6
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -3,6 +3,7 @@
raw: cat /etc/os-release
register: os_release
changed_when: false
environment: {}
- name: Set bootstrap_os
set_fact:
......
......@@ -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
......
......@@ -15,6 +15,7 @@
failed_when: false
changed_when: false
check_mode: no
environment: {}
when: not download_always_pull
- set_fact:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment