|
69 | 69 | destination: |
70 | 70 | - 1.1.1.1 |
71 | 71 | - 1::1 |
72 | | - includes: |
73 | | - - ssh |
74 | | - - ldaps |
| 72 | + includes: "{{ ['ssh', 'ldaps'] |
| 73 | + if ansible_distribution in ['RedHat', 'CentOS', 'Fedora'] |
| 74 | + and ansible_distribution_major_version is version('8', '>=') |
| 75 | + else [] }}" |
75 | 76 | permanent: true |
76 | 77 | state: present |
77 | 78 |
|
|
91 | 92 | destination: |
92 | 93 | - 1.1.1.1 |
93 | 94 | - 1::1 |
94 | | - includes: |
95 | | - - ssh |
96 | | - - ldaps |
| 95 | + includes: "{{ ['ssh', 'ldaps'] |
| 96 | + if ansible_distribution in ['RedHat', 'CentOS', 'Fedora'] |
| 97 | + and ansible_distribution_major_version is version('8', '>=') |
| 98 | + else [] }}" |
97 | 99 | permanent: true |
98 | 100 | state: present |
99 | 101 |
|
|
124 | 126 | - 1::1 |
125 | 127 | helper_module: ftp |
126 | 128 | protocol: icmp |
127 | | - includes: |
128 | | - - ssh |
129 | | - - ldaps |
| 129 | + includes: "{{ ['ssh', 'ldaps'] |
| 130 | + if ansible_distribution in ['RedHat', 'CentOS', 'Fedora'] |
| 131 | + and ansible_distribution_major_version is version('8', '>=') |
| 132 | + else [] }}" |
130 | 133 | permanent: true |
131 | 134 | state: present |
132 | 135 |
|
|
167 | 170 | - 1::1 |
168 | 171 | helper_module: ftp |
169 | 172 | protocol: icmp |
170 | | - includes: |
171 | | - - ssh |
172 | | - - ldaps |
| 173 | + includes: "{{ ['ssh', 'ldaps'] |
| 174 | + if ansible_distribution in ['RedHat', 'CentOS', 'Fedora'] |
| 175 | + and ansible_distribution_major_version is version('8', '>=') |
| 176 | + else [] }}" |
173 | 177 | permanent: true |
174 | 178 | state: present |
175 | 179 |
|
|
245 | 249 | - 1::1 |
246 | 250 | helper_module: ftp |
247 | 251 | protocol: icmp |
248 | | - includes: |
249 | | - - ssh |
250 | | - - ldaps |
| 252 | + includes: "{{ ['ssh', 'ldaps'] |
| 253 | + if ansible_distribution in ['RedHat', 'CentOS', 'Fedora'] |
| 254 | + and ansible_distribution_major_version is version('8', '>=') |
| 255 | + else [] }}" |
251 | 256 | permanent: true |
252 | 257 | state: absent |
253 | 258 |
|
|
271 | 276 | - 1::1 |
272 | 277 | helper_module: ftp |
273 | 278 | protocol: icmp |
274 | | - includes: |
275 | | - - ssh |
276 | | - - ldaps |
| 279 | + includes: "{{ ['ssh', 'ldaps'] |
| 280 | + if ansible_distribution in ['RedHat', 'CentOS', 'Fedora'] |
| 281 | + and ansible_distribution_major_version is version('8', '>=') |
| 282 | + else [] }}" |
277 | 283 | permanent: true |
278 | 284 | state: absent |
279 | 285 |
|
|
0 commit comments