cockpit/tests/roles/standard-test-source/tasks/main.yml

31 lines
710 B
YAML
Raw Normal View History

---
- name: Add executor host
add_host:
name: executor
ansible_connection: local
ansible_ssh_host: 127.0.0.1
ansible_ssh_connection: local
- name: Extract package source code
delegate_to: executor
block:
- name: Gather facts
setup:
delegate_facts: True
- name: Install requirements
package: name={{item}} state=present
with_items:
- fedpkg
# The dist doesn't actually matter here
- name: Download sources, extract, and strip leading path
shell: |
shopt -s dotglob
set -e
rm -rf {{ srcdir }}
fedpkg --release=master prep --builddir={{ srcdir }}
mv {{ srcdir }}/*/* {{ srcdir }}
args:
chdir: "{{playbook_dir}}/.."