From 8219fe0124013e31b68814eafec55296cd1bf65f Mon Sep 17 00:00:00 2001 From: damex Date: Mon, 22 Apr 2024 10:48:16 +0700 Subject: [PATCH] NOTASK: ensure ansible-lint rules --- galaxy.yml | 2 +- roles/systemd_hostnamed/tasks/systemd_service.yml | 2 +- roles/systemd_journald/tasks/systemd_service.yml | 2 +- roles/systemd_localed/tasks/systemd_service.yml | 2 +- roles/systemd_logind/tasks/systemd_service.yml | 2 +- roles/systemd_networkd/tasks/systemd_service.yml | 2 +- roles/systemd_pstore/tasks/systemd_service.yml | 2 +- roles/systemd_resolved/tasks/systemd_service.yml | 2 +- roles/systemd_service/tasks/main.yml | 4 ++-- roles/systemd_service/tasks/systemd_service.yml | 10 +++++----- roles/systemd_timedated/tasks/systemd_service.yml | 2 +- roles/systemd_timesyncd/tasks/package.yml | 2 +- roles/systemd_timesyncd/tasks/systemd_service.yml | 2 +- roles/systemd_unit/tasks/main.yml | 4 ++-- roles/systemd_unit/tasks/systemd_unit.yml | 6 +++--- 15 files changed, 23 insertions(+), 23 deletions(-) diff --git a/galaxy.yml b/galaxy.yml index b8c6f67..0f2b1c4 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: damex name: systemd -version: 0.2.8 +version: 1.0.0 readme: README.md authors: - Roman Kuzmitskii diff --git a/roles/systemd_hostnamed/tasks/systemd_service.yml b/roles/systemd_hostnamed/tasks/systemd_service.yml index 19f852f..719a7b4 100644 --- a/roles/systemd_hostnamed/tasks/systemd_service.yml +++ b/roles/systemd_hostnamed/tasks/systemd_service.yml @@ -1,5 +1,5 @@ --- -- name: Ensure {{ systemd_hostnamed_service_name }} systemd service +- name: Ensure systemd service {{ systemd_hostnamed_service_name }} ansible.builtin.include_role: name: damex.systemd.systemd_service vars: diff --git a/roles/systemd_journald/tasks/systemd_service.yml b/roles/systemd_journald/tasks/systemd_service.yml index 7523027..2902edb 100644 --- a/roles/systemd_journald/tasks/systemd_service.yml +++ b/roles/systemd_journald/tasks/systemd_service.yml @@ -1,5 +1,5 @@ --- -- name: Ensure {{ systemd_journald_service_name }} systemd service +- name: Ensure systemd service {{ systemd_journald_service_name }} ansible.builtin.include_role: name: damex.systemd.systemd_service vars: diff --git a/roles/systemd_localed/tasks/systemd_service.yml b/roles/systemd_localed/tasks/systemd_service.yml index 3aea149..cbdef32 100644 --- a/roles/systemd_localed/tasks/systemd_service.yml +++ b/roles/systemd_localed/tasks/systemd_service.yml @@ -1,5 +1,5 @@ --- -- name: Ensure {{ systemd_localed_service_name }} systemd service +- name: Ensure systemd service {{ systemd_localed_service_name }} ansible.builtin.include_role: name: damex.systemd.systemd_service vars: diff --git a/roles/systemd_logind/tasks/systemd_service.yml b/roles/systemd_logind/tasks/systemd_service.yml index 7edc4aa..4e6ce67 100644 --- a/roles/systemd_logind/tasks/systemd_service.yml +++ b/roles/systemd_logind/tasks/systemd_service.yml @@ -1,5 +1,5 @@ --- -- name: Ensure {{ systemd_logind_service_name }} systemd service +- name: Ensure systemd service {{ systemd_logind_service_name }} ansible.builtin.include_role: name: damex.systemd.systemd_service vars: diff --git a/roles/systemd_networkd/tasks/systemd_service.yml b/roles/systemd_networkd/tasks/systemd_service.yml index 7baac96..1b09b9c 100644 --- a/roles/systemd_networkd/tasks/systemd_service.yml +++ b/roles/systemd_networkd/tasks/systemd_service.yml @@ -1,5 +1,5 @@ --- -- name: Ensure {{ systemd_networkd_service_name }} systemd service +- name: Ensure systemd service {{ systemd_networkd_service_name }} ansible.builtin.include_role: name: damex.systemd.systemd_service vars: diff --git a/roles/systemd_pstore/tasks/systemd_service.yml b/roles/systemd_pstore/tasks/systemd_service.yml index 0fb60b7..8778c67 100644 --- a/roles/systemd_pstore/tasks/systemd_service.yml +++ b/roles/systemd_pstore/tasks/systemd_service.yml @@ -1,5 +1,5 @@ --- -- name: Ensure {{ systemd_pstore_service_name }} systemd service +- name: Ensure systemd service {{ systemd_pstore_service_name }} ansible.builtin.include_role: name: damex.systemd.systemd_service vars: diff --git a/roles/systemd_resolved/tasks/systemd_service.yml b/roles/systemd_resolved/tasks/systemd_service.yml index e82d8d4..f09b2b3 100644 --- a/roles/systemd_resolved/tasks/systemd_service.yml +++ b/roles/systemd_resolved/tasks/systemd_service.yml @@ -1,5 +1,5 @@ --- -- name: Ensure {{ systemd_resolved_service_name }} systemd service +- name: Ensure systemd service {{ systemd_resolved_service_name }} ansible.builtin.include_role: name: damex.systemd.systemd_service vars: diff --git a/roles/systemd_service/tasks/main.yml b/roles/systemd_service/tasks/main.yml index 087cff2..f50859a 100644 --- a/roles/systemd_service/tasks/main.yml +++ b/roles/systemd_service/tasks/main.yml @@ -1,9 +1,9 @@ --- -- name: Ensure {{ systemd_service_name }} systemd service +- name: Ensure systemd service {{ systemd_service_name }} tags: - service - systemd_service - systemd block: - - name: Ensure {{ systemd_service_name }} systemd service + - name: Ensure systemd service {{ systemd_service_name }} ansible.builtin.import_tasks: systemd_service.yml diff --git a/roles/systemd_service/tasks/systemd_service.yml b/roles/systemd_service/tasks/systemd_service.yml index 380d8e8..c756e7f 100644 --- a/roles/systemd_service/tasks/systemd_service.yml +++ b/roles/systemd_service/tasks/systemd_service.yml @@ -1,27 +1,27 @@ --- -- name: Ensure {{ systemd_service_name }} systemd service +- name: Ensure systemd service {{ systemd_service_name }} become: true when: - systemd_service_name | length block: - - name: Ensure {{ systemd_service_name }} systemd service is enabled + - name: Ensure systemd service is enabled {{ systemd_service_name }} ansible.builtin.systemd: name: "{{ systemd_service_name }}" enabled: "{{ systemd_service_enabled }}" - - name: Ensure {{ systemd_service_name }} systemd service is started + - name: Ensure systemd service is started {{ systemd_service_name }} ansible.builtin.systemd: name: "{{ systemd_service_name }}" state: "{{ systemd_service_state }}" - - name: Ensure {{ systemd_service_name }} systemd service is reloaded + - name: Ensure systemd service is reloaded {{ systemd_service_name }} ansible.builtin.systemd: name: "{{ systemd_service_name }}" state: reloaded when: - systemd_service_reload_on - - name: Ensure {{ systemd_service_name }} systemd service is restarted + - name: Ensure systemd service is restarted {{ systemd_service_name }} ansible.builtin.systemd: name: "{{ systemd_service_name }}" state: restarted diff --git a/roles/systemd_timedated/tasks/systemd_service.yml b/roles/systemd_timedated/tasks/systemd_service.yml index 2820691..7b4bdef 100644 --- a/roles/systemd_timedated/tasks/systemd_service.yml +++ b/roles/systemd_timedated/tasks/systemd_service.yml @@ -1,5 +1,5 @@ --- -- name: Ensure {{ systemd_timedated_service_name }} systemd service +- name: Ensure systemd service {{ systemd_timedated_service_name }} ansible.builtin.include_role: name: damex.systemd.systemd_service vars: diff --git a/roles/systemd_timesyncd/tasks/package.yml b/roles/systemd_timesyncd/tasks/package.yml index bcee97a..ddd4cce 100644 --- a/roles/systemd_timesyncd/tasks/package.yml +++ b/roles/systemd_timesyncd/tasks/package.yml @@ -3,7 +3,7 @@ ansible.builtin.include_role: name: damex.apt.apt_packages vars: - apt_packages: + apt_packages: # noqa: var-naming[no-role-prefix] - name: "{{ systemd_timesyncd_package_name }}" version: "{{ systemd_timesyncd_package_version }}" state: "{{ systemd_timesyncd_package_state }}" diff --git a/roles/systemd_timesyncd/tasks/systemd_service.yml b/roles/systemd_timesyncd/tasks/systemd_service.yml index a13b2e7..09ade8d 100644 --- a/roles/systemd_timesyncd/tasks/systemd_service.yml +++ b/roles/systemd_timesyncd/tasks/systemd_service.yml @@ -1,5 +1,5 @@ --- -- name: Ensure {{ systemd_timesyncd_service_name }} systemd service +- name: Ensure systemd service {{ systemd_timesyncd_service_name }} ansible.builtin.include_role: name: damex.systemd.systemd_service vars: diff --git a/roles/systemd_unit/tasks/main.yml b/roles/systemd_unit/tasks/main.yml index 8b3f377..6605758 100644 --- a/roles/systemd_unit/tasks/main.yml +++ b/roles/systemd_unit/tasks/main.yml @@ -1,9 +1,9 @@ --- -- name: Ensure {{ systemd_unit_name }} systemd unit +- name: Ensure systemd unit {{ systemd_unit_name }} tags: - unit - systemd_unit - systemd block: - - name: Ensure {{ systemd_unit_name }} systemd unit + - name: Ensure systemd unit {{ systemd_unit_name }} ansible.builtin.import_tasks: systemd_unit.yml diff --git a/roles/systemd_unit/tasks/systemd_unit.yml b/roles/systemd_unit/tasks/systemd_unit.yml index 04a6a6d..d09e911 100644 --- a/roles/systemd_unit/tasks/systemd_unit.yml +++ b/roles/systemd_unit/tasks/systemd_unit.yml @@ -1,5 +1,5 @@ --- -- name: Ensure {{ systemd_unit_name }} systemd unit +- name: Ensure systemd unit {{ systemd_unit_name }} ansible.builtin.template: src: unit.j2 dest: "{{ systemd_unit_file }}" @@ -13,7 +13,7 @@ register: systemd_unit_state become: true -- name: Ensure {{ systemd_unit_name }} systemd unit override directory +- name: Ensure override directory for systemd unit {{ systemd_unit_name }} ansible.builtin.file: path: "{{ systemd_unit_override_directory }}" owner: root @@ -26,7 +26,7 @@ - systemd_unit_override_name become: true -- name: Ensure {{ systemd_unit_name }} systemd unit {{ systemd_unit_override_name }} override +- name: Ensure override for systemd unit {{ systemd_unit_name }} ansible.builtin.template: src: unit.j2 dest: "{{ systemd_unit_override_file }}"