1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-05-08 23:46:02 +02:00

Replace ansible.builtin.service with ansible.builtin.systemd

The daemon_reload is specific to systemd and produce a warning in
ansible-lint

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
Leonidas Spyropoulos 2023-02-13 12:08:42 +00:00
parent c3b06ca542
commit eed477869d
No known key found for this signature in database
GPG Key ID: 59E43E106B247368
7 changed files with 7 additions and 7 deletions

View File

@ -96,7 +96,7 @@
template: src="memcached.service.d-archwiki.conf.j2" dest="/etc/systemd/system/memcached@archwiki.service.d/archwiki.conf" owner=root group=root mode=0644
- name: Start and enable memcached service
service: name=memcached@archwiki.service state=started enabled=true daemon_reload=true
systemd: name=memcached@archwiki.service state=started enabled=true daemon_reload=true
- name: Install systemd services/timers
template: src="{{ item }}.j2" dest="/etc/systemd/system/{{ item }}" owner=root group=root mode=0644

View File

@ -320,7 +320,7 @@
- Restart sshd
- name: Start and enable AUR systemd services and timers
service: name={{ item }} enabled=yes state=started daemon_reload=yes
systemd: name={{ item }} enabled=yes state=started daemon_reload=yes
with_items:
- aurweb-git.timer
- aurweb-git-archive.timer

View File

@ -9,4 +9,4 @@
daemon_reload: true
- name: Restart systemd-zram-setup@zram0
service: name=systemd-zram-setup@zram0 state=restarted daemon_reload=yes
systemd: name=systemd-zram-setup@zram0 state=restarted daemon_reload=yes

View File

@ -5,7 +5,7 @@
service: name=gitlab-runner state=restarted
- name: Restart gitlab-runner-docker-cleanup.timer
service: name=gitlab-runner-docker-cleanup.timer state=restarted daemon_reload=yes
systemd: name=gitlab-runner-docker-cleanup.timer state=restarted daemon_reload=yes
- name: Restart docker
service: name=docker state=restarted

View File

@ -37,7 +37,7 @@
no_log: true
- name: Start and enable keycloak
service: name=keycloak enabled=yes daemon_reload=yes state=started
systemd: name=keycloak enabled=yes daemon_reload=yes state=started
- name: Wait for keycloak to initialize
wait_for: port={{ keycloak_port }}

View File

@ -52,7 +52,7 @@
- "'hcloud' in group_names or inventory_hostname == 'packer-base-image'"
- name: Start and enable hcloud-init
service: name=hcloud-init daemon_reload=yes state=started enabled=yes
systemd: name=hcloud-init daemon_reload=yes state=started enabled=yes
when:
- chroot_path | length == 0
- "'hcloud' in group_names or inventory_hostname == 'packer-base-image'"

View File

@ -1,2 +1,2 @@
- name: Restart promtail
service: name=promtail daemon_reload=yes state=restarted
systemd: name=promtail daemon_reload=yes state=restarted