Fix tasks to avoid ansible warning about raw module environment (#3545)
parent
127969d65f
commit
3b787123e3
|
@ -2,6 +2,7 @@
|
||||||
- name: Bootstrap | Check if bootstrap is needed
|
- name: Bootstrap | Check if bootstrap is needed
|
||||||
raw: stat /opt/bin/.bootstrapped
|
raw: stat /opt/bin/.bootstrapped
|
||||||
register: need_bootstrap
|
register: need_bootstrap
|
||||||
|
environment: {}
|
||||||
failed_when: false
|
failed_when: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -10,12 +10,14 @@
|
||||||
- python
|
- python
|
||||||
- pip
|
- pip
|
||||||
- dbus-daemon
|
- dbus-daemon
|
||||||
|
environment: {}
|
||||||
tags: facts
|
tags: facts
|
||||||
|
|
||||||
- name: Bootstrap | Install python 2.x, pip, and dbus
|
- name: Bootstrap | Install python 2.x, pip, and dbus
|
||||||
raw:
|
raw:
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal python-pip dbus
|
DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal python-pip dbus
|
||||||
|
environment: {}
|
||||||
when:
|
when:
|
||||||
need_bootstrap.results | map(attribute='rc') | sort | last | bool
|
need_bootstrap.results | map(attribute='rc') | sort | last | bool
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,12 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
with_items:
|
with_items:
|
||||||
- python
|
- python
|
||||||
|
environment: {}
|
||||||
tags: facts
|
tags: facts
|
||||||
|
|
||||||
- name: Install python on fedora
|
- name: Install python on fedora
|
||||||
raw: "dnf install --assumeyes --quiet python"
|
raw: "dnf install --assumeyes --quiet python"
|
||||||
|
environment: {}
|
||||||
when: need_bootstrap.results | map(attribute='rc') | sort | last | bool
|
when: need_bootstrap.results | map(attribute='rc') | sort | last | bool
|
||||||
|
|
||||||
- name: Install required python packages
|
- name: Install required python packages
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
failed_when: false
|
failed_when: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
with_items: "{{ubuntu_packages}}"
|
with_items: "{{ubuntu_packages}}"
|
||||||
|
environment: {}
|
||||||
tags:
|
tags:
|
||||||
- facts
|
- facts
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@
|
||||||
raw:
|
raw:
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y {{ubuntu_packages | join(" ")}}
|
DEBIAN_FRONTEND=noninteractive apt-get install -y {{ubuntu_packages | join(" ")}}
|
||||||
|
environment: {}
|
||||||
when:
|
when:
|
||||||
- need_bootstrap.results | map(attribute='rc') | sort | last | bool
|
- need_bootstrap.results | map(attribute='rc') | sort | last | bool
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
raw: cat /etc/os-release
|
raw: cat /etc/os-release
|
||||||
register: os_release
|
register: os_release
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
environment: {}
|
||||||
|
|
||||||
- name: Set bootstrap_os
|
- name: Set bootstrap_os
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
failed_when: false
|
failed_when: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
check_mode: no
|
check_mode: no
|
||||||
|
environment: {}
|
||||||
when: download_container
|
when: download_container
|
||||||
|
|
||||||
- name: container_download | Create dest directory for saved/loaded container images
|
- name: container_download | Create dest directory for saved/loaded container images
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
failed_when: false
|
failed_when: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
check_mode: no
|
check_mode: no
|
||||||
|
environment: {}
|
||||||
when: not download_always_pull
|
when: not download_always_pull
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
|
|
Loading…
Reference in New Issue