Verified Commit a4a4f3e7 authored by Frederik Schwan's avatar Frederik Schwan Committed by Sven-Hendrik Haase
Browse files

fix E303 'Using command rather than module'

also use systemd instead of service module
parent fc769a7b
---
- name: daemon reload
command: systemctl daemon-reload
systemd:
reload-daemon: yes
---
- name: daemon reload
command: systemctl daemon-reload
......@@ -29,11 +29,13 @@
- name: install phrik systemd service
copy: src=phrik.service dest=/etc/systemd/system/phrik.service
notify:
- daemon reload
- name: start and enable pkgfile service
service: name="pkgfile-update.service" enabled=yes state=started
- name: start and enable phrik service
service: name="phrik.service" enabled=yes state=started
- name: start and enable pkgfile and phrikservice
systemd:
name: "{{ item }}"
enabled: yes
state: started
daemon_reload: yes
with_items:
- pkgfile-update.service
- phrik.service
---
- name: daemon reload
command: systemctl daemon-reload
- name: upgrade database
become: true
become_user: security
......
......@@ -93,5 +93,9 @@
when: release.changed
- name: start and enable security-tracker timer
service: name="security-tracker-update.timer" enabled=yes state=started
systemd:
name: security-tracker-update.timer
enabled: yes
state: started
daemon_reload: yes
when: maintenance is not defined
---
- name: daemon reload
command: systemctl daemon-reload
......@@ -16,8 +16,10 @@
with_items:
- createlinks.timer
- createlinks.service
notify:
- daemon reload
- name: start and enable sogrep units
service: name=createlinks.timer enabled=yes state=started
systemd:
name: createlinks.timer
enabled: yes
state: started
daemon_reload: yes
---
- name: systemd daemon reload
command: systemctl daemon-reload
- name: restart spampd
service: name=spampd state=restarted
......
......@@ -57,13 +57,16 @@
- name: activate systemd timers
service: name={{ item }} enabled=yes state=started
with_items:
sa-update.timer
- sa-update.timer
- name: remove override directory
file: path=/etc/systemd/system/spampd.service.d/ state=absent
notify:
- systemd daemon reload
- restart spampd
- name: start spampd
service: name=spampd enabled=yes state=started
systemd:
name: spampd
enabled: yes
state: started
daemon_reload: yes
---
- name: daemon reload
command: systemctl daemon-reload
......@@ -10,10 +10,12 @@
with_items:
- syncarchive.timer
- syncarchive.service
notify:
- daemon reload
- name: start and enable syncarchive units
service: name={{ item }} enabled=yes state=started
systemd:
name: "{{ item }}"
enabled: yes
state: started
daemon_reload: yes
with_items:
- syncarchive.timer
---
- name: daemon reload
command: systemctl daemon-reload
......@@ -15,14 +15,16 @@
with_items:
- syncrepo.timer
- syncrepo.service
notify:
- daemon reload
- name: install rsyncd config
copy: src=rsyncd.conf dest=/etc/rsyncd.conf owner=root group=root mode=0644
- name: start and enable syncrepo units
service: name={{ item }} enabled=yes state=started
systemd:
name: "{{ item }}"
enabled: yes
state: started
daemon_reload: yes
with_items:
- syncrepo.timer
- rsyncd.socket
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment