You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
715 B
24 lines
715 B
- name: Build the RPMS
|
|
hosts: all
|
|
tasks:
|
|
- name: Install software
|
|
become: true
|
|
ansible.builtin.dnf:
|
|
name:
|
|
- git
|
|
- rpm-build
|
|
- rpmdevtools
|
|
state: present
|
|
- name: Get user home directory
|
|
ansible.builtin.set_fact:
|
|
user_home_dir: "{{ lookup('env', 'HOME') }}"
|
|
- name: Clear directory $HOME/rpmbuild
|
|
ansible.builtin.file:
|
|
path: "{{ user_home_dir }}/rpmbuild"
|
|
state: absent
|
|
- name: Get user GIT_REPO_CLONE directory
|
|
ansible.builtin.shell: "printenv HOSTNAME"
|
|
register: user_git_dir
|
|
- name: DEbufrzq
|
|
ansible.builtin.debug:
|
|
msg: "GIT_REPO_CLONE value: {{ user_git_dir.stdout }}"
|
|
|