2020-08-28 09:28:53 +00:00
|
|
|
---
|
|
|
|
# Flatcar Container Linux ships without Python installed
|
|
|
|
|
|
|
|
- name: Check if bootstrap is needed
|
|
|
|
raw: stat /opt/bin/.bootstrapped
|
|
|
|
register: need_bootstrap
|
|
|
|
failed_when: false
|
|
|
|
changed_when: false
|
|
|
|
tags:
|
|
|
|
- facts
|
|
|
|
|
|
|
|
- name: Force binaries directory for Flatcar Container Linux by Kinvolk
|
|
|
|
set_fact:
|
|
|
|
bin_dir: "/opt/bin"
|
|
|
|
tags:
|
|
|
|
- facts
|
|
|
|
|
|
|
|
- name: Run bootstrap.sh
|
|
|
|
script: bootstrap.sh
|
|
|
|
become: true
|
2021-01-11 15:21:08 +00:00
|
|
|
environment: "{{ proxy_env }}"
|
2020-08-28 09:28:53 +00:00
|
|
|
when:
|
|
|
|
- need_bootstrap.rc != 0
|
|
|
|
|
|
|
|
- name: Set the ansible_python_interpreter fact
|
|
|
|
set_fact:
|
|
|
|
ansible_python_interpreter: "{{ bin_dir }}/python"
|
|
|
|
tags:
|
|
|
|
- facts
|
|
|
|
|
|
|
|
- name: Disable auto-upgrade
|
|
|
|
systemd:
|
|
|
|
name: locksmithd.service
|
|
|
|
masked: true
|
|
|
|
state: stopped
|
|
|
|
when:
|
|
|
|
- coreos_locksmithd_disable
|