From db698b595e7ff088c96d00ef5285a0d634aff1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 12 Dec 2022 22:15:01 +0100 Subject: refactor: pass ansible-lint with yaml header --- roles/rc/defaults/main.yml | 2 ++ roles/rc/defaults/os_alpine.yml | 2 ++ roles/rc/defaults/os_openbsd.yml | 2 ++ roles/rc/tasks/main.yml | 2 ++ roles/rc/vars/os_alpine.yml | 2 ++ roles/rc/vars/os_openbsd.yml | 2 ++ 6 files changed, 12 insertions(+) (limited to 'roles/rc') diff --git a/roles/rc/defaults/main.yml b/roles/rc/defaults/main.yml index f189142..5692a78 100644 --- a/roles/rc/defaults/main.yml +++ b/roles/rc/defaults/main.yml @@ -1,3 +1,5 @@ +--- + rc_dir: null rc_name: null diff --git a/roles/rc/defaults/os_alpine.yml b/roles/rc/defaults/os_alpine.yml index 5b87a57..8ae11ed 100644 --- a/roles/rc/defaults/os_alpine.yml +++ b/roles/rc/defaults/os_alpine.yml @@ -1 +1,3 @@ +--- + rc_dir: /etc/init.d diff --git a/roles/rc/defaults/os_openbsd.yml b/roles/rc/defaults/os_openbsd.yml index 345a648..257bd1c 100644 --- a/roles/rc/defaults/os_openbsd.yml +++ b/roles/rc/defaults/os_openbsd.yml @@ -1 +1,3 @@ +--- + rc_dir: /etc/rc.d diff --git a/roles/rc/tasks/main.yml b/roles/rc/tasks/main.yml index f45e373..3e0f0b5 100644 --- a/roles/rc/tasks/main.yml +++ b/roles/rc/tasks/main.yml @@ -1,3 +1,5 @@ +--- + - name: check required variables ansible.builtin.fail: when: > diff --git a/roles/rc/vars/os_alpine.yml b/roles/rc/vars/os_alpine.yml index 5b87a57..8ae11ed 100644 --- a/roles/rc/vars/os_alpine.yml +++ b/roles/rc/vars/os_alpine.yml @@ -1 +1,3 @@ +--- + rc_dir: /etc/init.d diff --git a/roles/rc/vars/os_openbsd.yml b/roles/rc/vars/os_openbsd.yml index 345a648..257bd1c 100644 --- a/roles/rc/vars/os_openbsd.yml +++ b/roles/rc/vars/os_openbsd.yml @@ -1 +1,3 @@ +--- + rc_dir: /etc/rc.d -- cgit v1.2.3