mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 10:31:56 +08:00
39 lines
799 B
YAML
39 lines
799 B
YAML
---
|
|
# tasks file for loopabull
|
|
|
|
- name: Install required packages
|
|
package: name="{{ item }}" state=installed
|
|
with_items:
|
|
- git
|
|
- loopabull
|
|
|
|
- name: configure loopabull
|
|
template:
|
|
src: loopabull.yml.j2
|
|
dest: /etc/loopabull.yml
|
|
notify: restart loopabull
|
|
|
|
- name: clone the playbooks repo into playbooks dir
|
|
git:
|
|
repo: "https://pagure.io/releng-automation.git"
|
|
dest: "{{playbooks_dir}}"
|
|
|
|
- name: Install the loopabull@.service template
|
|
copy:
|
|
src: "loopabull@.service"
|
|
dest: "/usr/lib/systemd/system/loopabull@.service"
|
|
notify: restart loopabull
|
|
|
|
- name: start and enable loopabull@
|
|
service:
|
|
name: "{{ item }}"
|
|
state: started
|
|
enabled: yes
|
|
with_items:
|
|
- loopabull@1
|
|
- loopabull@2
|
|
- loopabull@3
|
|
- loopabull@4
|
|
- loopabull@5
|
|
|