Fix some ansible-lint complaints.
This commit is contained in:
parent
c7030c9245
commit
2cf34e8e55
64 changed files with 357 additions and 297 deletions
|
@ -1,17 +1,17 @@
|
|||
- name: install apt-cacher-ng package
|
||||
apt:
|
||||
name: apt-cacher-ng
|
||||
state: latest
|
||||
state: latest # noqa package-latest
|
||||
|
||||
- name: enable apt-cacher-ng for localhost
|
||||
copy:
|
||||
src: apt.conf
|
||||
dest: /etc/apt/apt.conf
|
||||
force: no
|
||||
force: false
|
||||
mode: 0644
|
||||
notify: "start apt-cacher-ng"
|
||||
when: not run_in_installer|default(false)|bool ## do not enable apt-cacher during installation
|
||||
|
||||
|
||||
- name: check if preseeded installer is available
|
||||
stat: path={{ tftp_root }}/d-i/{{ di_dist }}/preseed.cfg
|
||||
register: preseedcfg
|
||||
|
@ -27,8 +27,8 @@
|
|||
firewalld:
|
||||
zone: internal
|
||||
port: 3142/tcp
|
||||
permanent: yes
|
||||
immediate: yes
|
||||
permanent: true
|
||||
immediate: true
|
||||
state: enabled
|
||||
when: not run_in_installer|default(false)|bool
|
||||
|
||||
|
@ -36,5 +36,5 @@
|
|||
command: "firewall-offline-cmd --zone=internal --add-port=3142/tcp"
|
||||
when: run_in_installer|default(false)|bool
|
||||
|
||||
|
||||
- meta: flush_handlers
|
||||
- name: flush handler to make apt-cacher available
|
||||
meta: flush_handlers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue