Use koschei_backend_services variable
This commit is contained in:
parent
a051237850
commit
5d02ce0e63
2 changed files with 3 additions and 15 deletions
|
@ -19,11 +19,7 @@
|
|||
tasks:
|
||||
- service: name={{ item }} state=stopped
|
||||
when: '"backend" in ansible_hostname'
|
||||
with_items:
|
||||
- koschei-resolver
|
||||
- koschei-scheduler
|
||||
- koschei-watcher
|
||||
- koschei-polling
|
||||
with_items: "{{ koschei_backend_services }}"
|
||||
- service: name=httpd state=stopped
|
||||
when: '"web" in ansible_hostname'
|
||||
|
||||
|
@ -76,10 +72,6 @@
|
|||
tasks:
|
||||
- service: name={{ item }} state=started
|
||||
when: '"backend" in ansible_hostname'
|
||||
with_items:
|
||||
- koschei-resolver
|
||||
- koschei-scheduler
|
||||
- koschei-watcher
|
||||
- koschei-polling
|
||||
with_items: "{{ koschei_backend_services }}"
|
||||
- service: name=httpd state=started
|
||||
when: '"web" in ansible_hostname'
|
||||
|
|
|
@ -43,11 +43,7 @@
|
|||
command: dnf {% for repo in fedora_repos %}--enablerepo {{ repo }} {% endfor %} makecache
|
||||
- name: stop services
|
||||
service: name="{{ item }}" state=stopped
|
||||
with_items:
|
||||
- koschei-scheduler
|
||||
- koschei-polling
|
||||
- koschei-resolver
|
||||
- koschei-watcher
|
||||
with_items: "{{ koschei_backend_services }}"
|
||||
- name: upgrade koschei
|
||||
dnf:
|
||||
name: "{{ item }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue