Debian Codegraph @

test/integration/targets/iptables/tasks/main.yml

raw
1 # test code for the iptables module
2 # (c) 2021, Éloi Rivard <[email protected]>
3
4 # This file is part of Ansible
5 #
6 # Ansible is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # Ansible is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with Ansible. If not, see <http://www.gnu.org/licenses/>.
18 ---
19 - name: Include distribution specific variables
20 include_vars: "{{ lookup('first_found', search) }}"
21 vars:
22 search:
23 files:
24 - '{{ ansible_distribution | lower }}.yml'
25 - '{{ ansible_os_family | lower }}.yml'
26 - '{{ ansible_system | lower }}.yml'
27 - default.yml
28 paths:
29 - vars
30
31 - name: install dependencies for iptables test
32 package:
33 name: iptables
34 state: present
35 # prevent attempts to upgrade the kernel and install kernel modules for a non-running kernel version
36 exclude: "{{ 'kernel-core' if ansible_distribution == 'RedHat' else omit }}"
37
38 - import_tasks: xt_comment.yml
39 - import_tasks: chain_management.yml