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
|
||||||
- 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue