|
@ -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 |
|
|
- name: Check presence of fastestmirror.conf |
|
|
stat: |
|
|
stat: |
|
@ -30,8 +37,12 @@ |
|
|
packages: |
|
|
packages: |
|
|
- libselinux-python |
|
|
- libselinux-python |
|
|
- epel-release |
|
|
- epel-release |
|
|
|
|
|
when: |
|
|
|
|
|
- not is_atomic |
|
|
|
|
|
|
|
|
- name: Install pip for bootstrap |
|
|
- name: Install pip for bootstrap |
|
|
yum: |
|
|
yum: |
|
|
name: python-pip |
|
|
name: python-pip |
|
|
state: present |
|
|
state: present |
|
|
|
|
|
when: |
|
|
|
|
|
- not is_atomic |