rpm_build: ansible-lint fixes

This commit is contained in:
Timo Makinen 2022-10-29 18:58:30 +00:00
parent 6e9f777a31
commit 14c5424ca1

View file

@ -1,7 +1,6 @@
--- ---
- name: Install packages
- name: install packages ansible.builtin.package:
package:
name: "{{ item }}" name: "{{ item }}"
state: installed state: installed
with_items: with_items:
@ -9,8 +8,8 @@
- rpm-build - rpm-build
- rpmlint - rpmlint
- name: create directory structure - name: Create directory structure
file: ansible.builtin.file:
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
owner: root owner: root
@ -22,8 +21,8 @@
- /export/rpmbuild/SPECS - /export/rpmbuild/SPECS
- /export/rpmbuild/SRPMS - /export/rpmbuild/SRPMS
- name: link data directory - name: Link data directory
file: ansible.builtin.file:
dest: /srv/rpmbuild dest: /srv/rpmbuild
src: /export/rpmbuild src: /export/rpmbuild
state: link state: link
@ -31,8 +30,8 @@
group: "{{ ansible_wheel }}" group: "{{ ansible_wheel }}"
follow: false follow: false
- name: create .rpmmacros - name: Create .rpmmacros
copy: ansible.builtin.copy:
dest: /root/.rpmmacros dest: /root/.rpmmacros
content: "%_topdir /srv/rpmbuild\n" content: "%_topdir /srv/rpmbuild\n"
mode: 0600 mode: 0600