Fix tasks to avoid ansible warning about raw module environment (#3545)
This commit is contained in:
parent
127969d65f
commit
3b787123e3
7 changed files with 10 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue