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