aboutsummaryrefslogtreecommitdiffstats
path: root/roles/rc/tasks/main.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
commit0df015e9b5c4aefd4245c94ee98021d2af80ed99 (patch)
treed9dbf4259500857daf41b627dbc2d116ba92dbc1 /roles/rc/tasks/main.yml
parent1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff)
downloadrules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz
lint: pass ansible-lint + yamllint
Diffstat (limited to 'roles/rc/tasks/main.yml')
-rw-r--r--roles/rc/tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/rc/tasks/main.yml b/roles/rc/tasks/main.yml
index c691aae..f45e373 100644
--- a/roles/rc/tasks/main.yml
+++ b/roles/rc/tasks/main.yml
@@ -1,14 +1,14 @@
- name: check required variables
- fail:
+ ansible.builtin.fail:
when: >
rc_name is none or
rc_user is none
- name: include rc task per-system
- include_vars: "os_{{ ansible_distribution | lower }}.yml"
+ ansible.builtin.include_vars: "os_{{ ansible_distribution | lower }}.yml"
- name: generate rc script for desired service
- template:
+ ansible.builtin.template:
src: "os_{{ ansible_distribution | lower }}.j2"
dest: "{{ rc_dir }}/{{ rc_name }}"
owner: 0
remember that computers suck.