mirror of
https://github.com/ansible/ansible.git
synced 2026-05-28 04:32:20 -04:00
Merge 9d5aff72e0 into ba21909655
This commit is contained in:
commit
c4f080eb67
3 changed files with 36 additions and 8 deletions
|
|
@ -1,6 +1,10 @@
|
|||
- block:
|
||||
- name: Disable ubuntu repos so system packages are not upgraded and do not change testing env
|
||||
command: mv /etc/apt/sources.list /etc/apt/sources.list.backup
|
||||
shell: |
|
||||
find /etc/apt/sources.list* \
|
||||
\( -name \*.list -or -name \*.sources \) \
|
||||
-and -not -name file_tmp_repo.list \
|
||||
| xargs -I{} mv {} {}.backup
|
||||
|
||||
- name: install latest foo
|
||||
apt:
|
||||
|
|
@ -74,4 +78,7 @@
|
|||
autoclean: yes
|
||||
|
||||
- name: Restore ubuntu repos
|
||||
command: mv /etc/apt/sources.list.backup /etc/apt/sources.list
|
||||
shell: |
|
||||
find /etc/apt/sources.list* -name \*.backup \
|
||||
| sed 's/\.backup$//' \
|
||||
| xargs -I{} mv {}.backup {}
|
||||
|
|
|
|||
|
|
@ -195,7 +195,11 @@
|
|||
# https://github.com/ansible/ansible/issues/35900
|
||||
- block:
|
||||
- name: Disable ubuntu repos so system packages are not upgraded and do not change testing env
|
||||
command: mv /etc/apt/sources.list /etc/apt/sources.list.backup
|
||||
shell: |
|
||||
find /etc/apt/sources.list* \
|
||||
\( -name \*.list -or -name \*.sources \) \
|
||||
-and -not -name file_tmp_repo.list \
|
||||
| xargs -I{} mv {} {}.backup
|
||||
|
||||
- name: Install foobar, installs foo as a dependency
|
||||
apt:
|
||||
|
|
@ -262,13 +266,20 @@
|
|||
autoclean: yes
|
||||
|
||||
- name: Restore ubuntu repos
|
||||
command: mv /etc/apt/sources.list.backup /etc/apt/sources.list
|
||||
shell: |
|
||||
find /etc/apt/sources.list* -name \*.backup \
|
||||
| sed 's/\.backup$//' \
|
||||
| xargs -I{} mv {}.backup {}
|
||||
|
||||
|
||||
# https://github.com/ansible/ansible/issues/26298
|
||||
- block:
|
||||
- name: Disable ubuntu repos so system packages are not upgraded and do not change testing env
|
||||
command: mv /etc/apt/sources.list /etc/apt/sources.list.backup
|
||||
shell: |
|
||||
find /etc/apt/sources.list* \
|
||||
\( -name \*.list -or -name \*.sources \) \
|
||||
-and -not -name file_tmp_repo.list \
|
||||
| xargs -I{} mv {} {}.backup
|
||||
|
||||
- name: Install foobar, installs foo as a dependency
|
||||
apt:
|
||||
|
|
@ -349,7 +360,10 @@
|
|||
autoclean: yes
|
||||
|
||||
- name: Restore ubuntu repos
|
||||
command: mv /etc/apt/sources.list.backup /etc/apt/sources.list
|
||||
shell: |
|
||||
find /etc/apt/sources.list* -name \*.backup \
|
||||
| sed 's/\.backup$//' \
|
||||
| xargs -I{} mv {}.backup {}
|
||||
|
||||
- name: Downgrades
|
||||
import_tasks: "downgrade.yml"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
- block:
|
||||
- name: Disable ubuntu repos so system packages are not upgraded and do not change testing env
|
||||
command: mv /etc/apt/sources.list /etc/apt/sources.list.backup
|
||||
shell: |
|
||||
find /etc/apt/sources.list* \
|
||||
\( -name \*.list -or -name \*.sources \) \
|
||||
-and -not -name file_tmp_repo.list \
|
||||
| xargs -I{} mv {} {}.backup
|
||||
|
||||
- name: install foo-1.0.0
|
||||
apt:
|
||||
|
|
@ -61,4 +65,7 @@
|
|||
autoclean: yes
|
||||
|
||||
- name: Restore ubuntu repos
|
||||
command: mv /etc/apt/sources.list.backup /etc/apt/sources.list
|
||||
shell: |
|
||||
find /etc/apt/sources.list* -name \*.backup \
|
||||
| sed 's/\.backup$//' \
|
||||
| xargs -I{} mv {}.backup {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue