2015-12-30 21:15:18 +00:00
|
|
|
---
|
2019-04-23 22:46:02 +00:00
|
|
|
# CoreOS ships without Python installed
|
|
|
|
|
2019-02-11 22:04:27 +00:00
|
|
|
- name: Check if bootstrap is needed
|
2016-02-19 17:48:53 +00:00
|
|
|
raw: stat /opt/bin/.bootstrapped
|
2015-12-30 21:15:18 +00:00
|
|
|
register: need_bootstrap
|
2016-12-27 11:38:54 +00:00
|
|
|
failed_when: false
|
2017-11-06 13:51:07 +00:00
|
|
|
changed_when: false
|
2017-10-05 07:43:04 +00:00
|
|
|
tags:
|
|
|
|
- facts
|
2015-12-30 21:15:18 +00:00
|
|
|
|
2020-02-18 08:15:29 +00:00
|
|
|
- name: Force binaries directory for Container Linux by CoreOS and Flatcar
|
2018-05-08 19:32:52 +00:00
|
|
|
set_fact:
|
|
|
|
bin_dir: "/opt/bin"
|
|
|
|
tags:
|
|
|
|
- facts
|
|
|
|
|
2019-02-11 22:04:27 +00:00
|
|
|
- name: Run bootstrap.sh
|
2015-12-30 21:15:18 +00:00
|
|
|
script: bootstrap.sh
|
2019-04-23 22:46:02 +00:00
|
|
|
become: true
|
2021-01-11 15:21:08 +00:00
|
|
|
environment: "{{ proxy_env }}"
|
2019-04-23 22:46:02 +00:00
|
|
|
when:
|
|
|
|
- need_bootstrap.rc != 0
|
2015-12-30 21:15:18 +00:00
|
|
|
|
2019-04-23 22:46:02 +00:00
|
|
|
- name: Set the ansible_python_interpreter fact
|
|
|
|
set_fact:
|
2018-05-08 19:32:52 +00:00
|
|
|
ansible_python_interpreter: "{{ bin_dir }}/python"
|
2017-10-05 07:43:04 +00:00
|
|
|
tags:
|
|
|
|
- facts
|
2015-12-30 21:15:18 +00:00
|
|
|
|
2019-02-11 22:04:27 +00:00
|
|
|
- name: Disable auto-upgrade
|
2019-01-12 14:06:01 +00:00
|
|
|
systemd:
|
|
|
|
name: locksmithd.service
|
|
|
|
masked: true
|
|
|
|
state: stopped
|
2018-08-14 18:42:16 +00:00
|
|
|
when:
|
2019-04-23 22:46:02 +00:00
|
|
|
- coreos_locksmithd_disable
|