From 3026ccda415fd94d3d2450c9409829537d2e2a14 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 20 Dec 2021 19:54:35 +0100 Subject: [PATCH] improve naming and linting --- .yamllint | 14 ++++++++++++++ tasks/main.yml | 2 +- tasks/packages.yml | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .yamllint diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..f69cdd3 --- /dev/null +++ b/.yamllint @@ -0,0 +1,14 @@ +--- +extends: default + +rules: + # 150 chars should be enough, but don't fail if a line is longer + line-length: + max: 180 + level: warning + +ignore: | + host_vars/mail01.l3d.space/vault.yml + host_vars/web01.l3d.space/vault.yml + group_vars/all/vault.yml + roles/ diff --git a/tasks/main.yml b/tasks/main.yml index ea240bd..921dd4c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,7 +5,7 @@ - name: configure hostname ansible.builtin.include_tasks: hostname.yml -- name: install some packages +- name: install some useful packages ansible.builtin.include_tasks: packages.yml - name: scan for updates diff --git a/tasks/packages.yml b/tasks/packages.yml index 25eb54e..dabf536 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -1,5 +1,5 @@ --- -- name: Install git +- name: Install some base packages chocolatey.chocolatey.win_chocolatey: name: "{{ win_base_init__packages }}" state: present