Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/ansible
Path: blob/devel/test/integration/targets/apt/tasks/main.yml
4751 views
1
# (c) 2014, James Tanner <[email protected]>
2
3
# This file is part of Ansible
4
#
5
# Ansible is free software: you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation, either version 3 of the License, or
8
# (at your option) any later version.
9
#
10
# Ansible is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
14
#
15
# You should have received a copy of the GNU General Public License
16
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
17
18
- block:
19
- include: 'apt.yml'
20
21
- include: 'url-with-deps.yml'
22
23
- include: 'apt-multiarch.yml'
24
when:
25
- ansible_userspace_architecture != apt_foreign_arch
26
27
- include: 'apt-builddep.yml'
28
29
- block:
30
- include: 'repo.yml'
31
always:
32
- file:
33
path: /etc/apt/sources.list.d/file_tmp_repo.list
34
state: absent
35
- file:
36
name: "{{ repodir }}"
37
state: absent
38
39
when:
40
- ansible_distribution in ('Ubuntu', 'Debian')
41
42