Skip to content
bootstrap-coreos.yml 755 B
Newer Older
# CoreOS ships without Python installed

- name: Check if bootstrap is needed
Smana's avatar
Smana committed
  raw: stat /opt/bin/.bootstrapped
  register: need_bootstrap
  failed_when: false
- name: Force binaries directory for Container Linux by CoreOS and Flatcar
  set_fact:
    bin_dir: "/opt/bin"
  tags:
    - facts

- name: Run bootstrap.sh
  environment: "{{ proxy_env }}"
  when:
    - need_bootstrap.rc != 0
- name: Set the ansible_python_interpreter fact
  set_fact:
    ansible_python_interpreter: "{{ bin_dir }}/python"
- name: Disable auto-upgrade
  systemd:
    name: locksmithd.service
    masked: true
    state: stopped
    - coreos_locksmithd_disable