Sastify ansible-lint

This commit is contained in:
rockstable 2022-12-07 23:46:27 +01:00
parent 46230b77eb
commit d33036dcf6
3 changed files with 9 additions and 19 deletions

View File

@ -36,6 +36,8 @@
loop: loop:
- "FOCAL64" - "FOCAL64"
- "JAMMY64" - "JAMMY64"
tags:
- unbound_configure
- name: "Allow '{{ fai_loguser }}' to write to '{{ tftp_dir }}' to ship logs" - name: "Allow '{{ fai_loguser }}' to write to '{{ tftp_dir }}' to ship logs"
become: true become: true

View File

@ -1,7 +1,7 @@
--- ---
# tasks file for fai # tasks file for fai
- name: "Fail if 'dhcp_interface' is undefined" - name: "Fail if 'dhcp_interface' is undefined"
fail: ansible.builtin.fail:
msg: | msg: |
Please specify the NIC serving FAI Please specify the NIC serving FAI
in variable 'dhcp_interface' (e.g. eth1) in variable 'dhcp_interface' (e.g. eth1)
@ -13,7 +13,7 @@
manager: auto manager: auto
- name: "Debug host_vars" - name: "Debug host_vars"
debug: ansible.builtin.debug:
var: hostvars var: hostvars
verbosity: 1 verbosity: 1
tags: tags:
@ -108,9 +108,6 @@
tags: tags:
- fai_profiles - fai_profiles
tags:
- fai_profiles
- name: "Create FAI nfsroot" - name: "Create FAI nfsroot"
include_tasks: include_tasks:
file: fai-nfsroot.yml file: fai-nfsroot.yml

View File

@ -1,12 +1,12 @@
- name: "Ensure systemd-resolved is stopped and disabled" - name: "Ensure systemd-resolved is stopped and disabled"
service: ansible.buildin.service:
name: systemd-resolved name: systemd-resolved
enabled: false enabled: false
state: stopped state: stopped
tags:
- systemd-resolved_disable
when: when:
- "'systemd-resolved' in ansible_facts.packages" - "'systemd-resolved' in ansible_facts.packages"
tags:
- systemd-resolved_disable
- name: "Install DNS - unbound server" - name: "Install DNS - unbound server"
become: true become: true
@ -26,10 +26,10 @@
group: root group: root
validate: "unbound-checkconf %s" validate: "unbound-checkconf %s"
notify: restart unbound notify: restart unbound
tags:
- unbound_configure
when: when:
- false - false
tags:
- unbound_configure
- name: "Configure DNS - zone '{{ domain_name }}'" - name: "Configure DNS - zone '{{ domain_name }}'"
become: true become: true
@ -69,12 +69,3 @@
tags: tags:
- unbound_enable - unbound_enable
- name: >
"Sleep for '{{wait_timeout_unbound }}' seconds
then run handlers to restart unbound"
vars:
wait_timeout_unbound: 3
wait_for:
timeout: "{{ wait_timeout_unbound }}"
delegate_to: localhost
when: false