Adding is_atomic in centos bootstrap-os (#3873)
Adding fact is_atomic in bootstrap-centos.yml. Fix issue: #3538
This commit is contained in:
parent
90a7941d56
commit
32d47c836d
1 changed files with 11 additions and 0 deletions
|
@ -1,4 +1,11 @@
|
|||
---
|
||||
- name: check if atomic host
|
||||
stat:
|
||||
path: /run/ostree-booted
|
||||
register: ostree
|
||||
|
||||
- set_fact:
|
||||
is_atomic: "{{ ostree.stat.exists }}"
|
||||
|
||||
- name: Check presence of fastestmirror.conf
|
||||
stat:
|
||||
|
@ -30,8 +37,12 @@
|
|||
packages:
|
||||
- libselinux-python
|
||||
- epel-release
|
||||
when:
|
||||
- not is_atomic
|
||||
|
||||
- name: Install pip for bootstrap
|
||||
yum:
|
||||
name: python-pip
|
||||
state: present
|
||||
when:
|
||||
- not is_atomic
|
||||
|
|
Loading…
Reference in a new issue