2014-02-20 20:55:55 +01:00
|
|
|
# (c) 2014, James Tanner <tanner.jc@gmail.com>
|
|
|
|
|
|
|
|
# This file is part of Ansible
|
|
|
|
#
|
|
|
|
# Ansible is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# Ansible is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2018-03-29 08:20:10 +02:00
|
|
|
- block:
|
2020-09-29 17:35:59 +02:00
|
|
|
- import_tasks: 'apt.yml'
|
2018-11-14 12:12:57 +01:00
|
|
|
|
2020-09-29 17:35:59 +02:00
|
|
|
- import_tasks: 'url-with-deps.yml'
|
2020-03-24 19:59:42 +01:00
|
|
|
|
2020-09-29 17:35:59 +02:00
|
|
|
- import_tasks: 'apt-multiarch.yml'
|
2018-11-14 12:12:57 +01:00
|
|
|
when:
|
|
|
|
- ansible_userspace_architecture != apt_foreign_arch
|
|
|
|
|
2020-09-29 17:35:59 +02:00
|
|
|
- import_tasks: 'apt-builddep.yml'
|
2018-11-14 12:12:57 +01:00
|
|
|
|
2018-03-29 08:20:10 +02:00
|
|
|
- block:
|
2020-09-29 17:35:59 +02:00
|
|
|
- import_tasks: 'repo.yml'
|
2018-03-29 08:20:10 +02:00
|
|
|
always:
|
2019-01-15 02:16:15 +01:00
|
|
|
- file:
|
|
|
|
path: /etc/apt/sources.list.d/file_tmp_repo.list
|
2018-03-29 08:20:10 +02:00
|
|
|
state: absent
|
|
|
|
- file:
|
|
|
|
name: "{{ repodir }}"
|
|
|
|
state: absent
|
2018-03-22 19:14:40 +01:00
|
|
|
|
2018-03-29 08:20:10 +02:00
|
|
|
when:
|
|
|
|
- ansible_distribution in ('Ubuntu', 'Debian')
|