rpm_build: Rename role

This commit is contained in:
Timo Makinen 2022-02-25 00:09:27 +00:00
parent 4d6dcdac82
commit d1e0c54fd0
2 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,40 @@
---
- name: install packages
package:
name: "{{ item }}"
state: installed
with_items:
- mock
- rpm-build
- rpmlint
- name: create directory structure
file:
path: "{{ item }}"
state: directory
owner: root
group: "{{ ansible_wheel }}"
mode: 0755
with_items:
- /export/rpmbuild
- /export/rpmbuild/SOURCES
- /export/rpmbuild/SPECS
- /export/rpmbuild/SRPMS
- name: link data directory
file:
dest: /srv/rpmbuild
src: /export/rpmbuild
state: link
owner: root
group: "{{ ansible_wheel }}"
follow: false
- name: create .rpmmacros
copy:
dest: /root/.rpmmacros
content: "%_topdir /srv/rpmbuild\n"
mode: 0600
owner: root
group: "{{ ansible_wheel }}"