rpm_build: ansible-lint fixes
This commit is contained in:
parent
6e9f777a31
commit
14c5424ca1
1 changed files with 8 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue