copr: builders: don't require file edits to define prepare_base_image
From now on, it should be enough to run $ ansible-playbook -e prepare_base_image=1 <the_spawning_playbook>
This commit is contained in:
parent
0fb639db2a
commit
fd8a72af72
5 changed files with 5 additions and 10 deletions
|
@ -11,7 +11,6 @@
|
||||||
- vars.yml
|
- vars.yml
|
||||||
- nova_cloud_vars.yml
|
- nova_cloud_vars.yml
|
||||||
vars:
|
vars:
|
||||||
prepare_base_image: False
|
|
||||||
ansible_python_interpreter: /usr/bin/python3
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
@ -43,8 +43,6 @@
|
||||||
- nova_cloud_vars.yml
|
- nova_cloud_vars.yml
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
# change this to True if you need to create new base image from snapshot
|
|
||||||
prepare_base_image: False
|
|
||||||
ansible_python_interpreter: /usr/bin/python3
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
@ -43,8 +43,6 @@
|
||||||
- nova_cloud_vars.yml
|
- nova_cloud_vars.yml
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
# change this to True if you need to create new base image from snapshot
|
|
||||||
prepare_base_image: False
|
|
||||||
ansible_python_interpreter: /usr/bin/python3
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
- name: install ethtool
|
- name: install ethtool
|
||||||
package: state=present name=ethtool
|
package: state=present name=ethtool
|
||||||
when: prepare_base_image
|
when: prepare_base_image is defined
|
||||||
|
|
||||||
- name: disable offloading
|
- name: disable offloading
|
||||||
command: ethtool -K eth0 tso off gro off gso off
|
command: ethtool -K eth0 tso off gro off gso off
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
- name: put infra repos into yum.repos.d
|
- name: put infra repos into yum.repos.d
|
||||||
copy: src=files/dnf/infra-tags.repo dest=/etc/yum.repos.d
|
copy: src=files/dnf/infra-tags.repo dest=/etc/yum.repos.d
|
||||||
when:
|
when:
|
||||||
- prepare_base_image
|
- prepare_base_image is defined
|
||||||
|
|
||||||
- name: put infra stg repos into yum.repos.d if staging
|
- name: put infra stg repos into yum.repos.d if staging
|
||||||
copy: src=files/dnf/infra-tags-stg.repo dest=/etc/yum.repos.d
|
copy: src=files/dnf/infra-tags-stg.repo dest=/etc/yum.repos.d
|
||||||
when:
|
when:
|
||||||
- devel
|
- devel
|
||||||
- not prepare_base_image
|
- not prepare_base_image is defined
|
||||||
|
|
||||||
- name: disable updates-testing
|
- name: disable updates-testing
|
||||||
file:
|
file:
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- shell: dnf -y upgrade
|
- shell: dnf -y upgrade
|
||||||
when: prepare_base_image
|
when: prepare_base_image is defined
|
||||||
|
|
||||||
- name: set bigger timeout for yum
|
- name: set bigger timeout for yum
|
||||||
ini_file: dest=/etc/yum.conf section=main option=timeout value=1000
|
ini_file: dest=/etc/yum.conf section=main option=timeout value=1000
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
- "@copr/copr"
|
- "@copr/copr"
|
||||||
when:
|
when:
|
||||||
- devel
|
- devel
|
||||||
- not prepare_base_image
|
- prepare_base_image is not defined
|
||||||
|
|
||||||
- name: clean dnf cache
|
- name: clean dnf cache
|
||||||
shell: dnf clean all
|
shell: dnf clean all
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue