Satisfy ansible-lint truth values

This commit is contained in:
rockstable 2022-12-07 23:25:18 +01:00
parent 01fef41194
commit 46230b77eb
6 changed files with 18 additions and 18 deletions

View File

@ -1,12 +1,12 @@
- name: "Install apt cacher" - name: "Install apt cacher"
become: True become: true
ansible.builtin.package: ansible.builtin.package:
name: name:
- apt-cacher-ng - apt-cacher-ng
state: present state: present
- name: "Configure apt cacher" - name: "Configure apt cacher"
become: True become: true
ansible.builtin.copy: ansible.builtin.copy:
content: | content: |
CacheDir: /var/cache/apt-cacher-ng CacheDir: /var/cache/apt-cacher-ng
@ -42,7 +42,7 @@
notify: restart apt-cacher-ng notify: restart apt-cacher-ng
- name: "Set ubuntu server as backend" - name: "Set ubuntu server as backend"
become: True become: true
ansible.builtin.copy: ansible.builtin.copy:
content: | content: |
http://archive.ubuntu.com/ubuntu/ http://archive.ubuntu.com/ubuntu/
@ -52,14 +52,14 @@
mode: '0644' mode: '0644'
- name: "Ensure service is started and enabled" - name: "Ensure service is started and enabled"
become: True become: true
ansible.builtin.service: ansible.builtin.service:
name: apt-cacher-ng name: apt-cacher-ng
enabled: true enabled: true
state: started state: started
- name: "Set apt cache also for installer host" - name: "Set apt cache also for installer host"
become: True become: true
ansible.builtin.copy: ansible.builtin.copy:
dest: "/etc/apt/apt.conf.d/00proxy" dest: "/etc/apt/apt.conf.d/00proxy"
content: | content: |

View File

@ -13,7 +13,7 @@
group: root group: root
mode: '0755' mode: '0755'
state: directory state: directory
recurse: yes recurse: true
tags: tags:
- clonezilla - clonezilla
- clonezilla_dir_create - clonezilla_dir_create
@ -31,7 +31,7 @@
ansible.builtin.shell: ansible.builtin.shell:
chdir: "{{ clonezilla_download_dir }}" chdir: "{{ clonezilla_download_dir }}"
cmd: unzip "{{ clonezilla_download_dir + '/' + clonezilla_archive }}" cmd: unzip "{{ clonezilla_download_dir + '/' + clonezilla_archive }}"
check_mode: no check_mode: false
tags: tags:
- clonezilla - clonezilla
- clonezilla_unzip - clonezilla_unzip

View File

@ -1,6 +1,6 @@
--- ---
- name: "Install package ipxe" - name: "Install package ipxe"
become: True become: true
ansible.builtin.package: ansible.builtin.package:
name: ipxe name: ipxe
state: present state: present
@ -9,11 +9,11 @@
- ipxe_install - ipxe_install
- name: "Copy iPXE binaries to '{{ tftp_dir }}'" - name: "Copy iPXE binaries to '{{ tftp_dir }}'"
become: True become: true
ansible.builtin.copy: ansible.builtin.copy:
src: "{{ item }}" src: "{{ item }}"
dest: "{{ tftp_dir }}" dest: "{{ tftp_dir }}"
remote_src: yes remote_src: true
with_items: with_items:
- "/usr/lib/ipxe/ipxe.efi" - "/usr/lib/ipxe/ipxe.efi"
- "/usr/lib/ipxe/ipxe.pxe" - "/usr/lib/ipxe/ipxe.pxe"
@ -24,7 +24,7 @@
- ipxe_copy - ipxe_copy
- name: "Write ipxe menu" - name: "Write ipxe menu"
become: True become: true
ansible.builtin.template: ansible.builtin.template:
src: "menu.ipxe.j2" src: "menu.ipxe.j2"
dest: "{{ tftp_dir }}/menu.ipxe" dest: "{{ tftp_dir }}/menu.ipxe"

View File

@ -19,7 +19,7 @@
group: root group: root
mode: '0440' mode: '0440'
lstrip_blocks: true lstrip_blocks: true
backup: no backup: false
validate: /usr/sbin/visudo -cf %s validate: /usr/sbin/visudo -cf %s
when: when:
- ansible_nopasswd - ansible_nopasswd
@ -65,7 +65,7 @@
package: package:
name: '{{ package_set.core[distrib].standard }}' name: '{{ package_set.core[distrib].standard }}'
state: present state: present
update_cache: False update_cache: false
### ONLY A SET FOR DEBIAN/UBUNTU HAS BEEN DEFINED YET ### ONLY A SET FOR DEBIAN/UBUNTU HAS BEEN DEFINED YET
when: ansible_facts['os_family'] == "Debian" when: ansible_facts['os_family'] == "Debian"
tags: tags:

View File

@ -1,12 +1,12 @@
- name: "Install tftp server" - name: "Install tftp server"
become: True become: true
ansible.builtin.package: ansible.builtin.package:
name: name:
- tftpd-hpa - tftpd-hpa
state: present state: present
- name: "Create tftp fai directory" - name: "Create tftp fai directory"
become: True become: true
ansible.builtin.file: ansible.builtin.file:
name: "{{ tftp_dir }}" name: "{{ tftp_dir }}"
state: directory state: directory
@ -16,7 +16,7 @@
recurse: true recurse: true
- name: "Configure tftp server" - name: "Configure tftp server"
become: True become: true
ansible.builtin.copy: ansible.builtin.copy:
dest: "/etc/default/tftpd-hpa" dest: "/etc/default/tftpd-hpa"
content: | content: |
@ -30,7 +30,7 @@
notify: restart tftpd notify: restart tftpd
- name: "Start tftp daemon" - name: "Start tftp daemon"
become: True become: true
ansible.builtin.service: ansible.builtin.service:
name: tftpd-hpa name: tftpd-hpa
state: started state: started

View File

@ -11,7 +11,7 @@
- name: "Configure rdate for inetd" - name: "Configure rdate for inetd"
become: true become: true
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
create: yes create: true
line: 'time stream tcp nowait root internal' line: 'time stream tcp nowait root internal'
dest: "/etc/inetd.conf" dest: "/etc/inetd.conf"
owner: root owner: root