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