From 6f8a28269777882506b95b0758e7e5f58c665a2e Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Wed, 22 Mar 2023 22:18:28 +0100 Subject: [PATCH 1/2] WIP --- .ansible-lint | 1 + molecule/default/molecule.yml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.ansible-lint b/.ansible-lint index 7e0172a..b04781e 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,4 +1,5 @@ --- warn_list: - role-name + - name[play] - name[casing] diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index fbb7120..8841165 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -8,7 +8,9 @@ platforms: image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu1604}-ansible:latest" command: ${MOLECULE_DOCKER_COMMAND:-""} volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw + - /var/lib/containerd + cgroupns_mode: host privileged: true pre_build_image: true provisioner: From 257aafb461977a81c03b640e3572da177f413c35 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Wed, 22 Mar 2023 22:22:52 +0100 Subject: [PATCH 2/2] Cs fixes --- tasks/main.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index a8a42eb..b585cd9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,30 +1,35 @@ # tasks file --- -- ansible.builtin.include: repository.yml +- name: repository + ansible.builtin.import_tasks: repository.yml tags: - configuration - percona-toolkit - percona-toolkit-repository -- ansible.builtin.include: install.yml +- name: install + ansible.builtin.import_tasks: install.yml tags: - configuration - percona-toolkit - percona-toolkit-install -- ansible.builtin.include: configure.yml +- name: configure + ansible.builtin.import_tasks: configure.yml tags: - configuration - percona-toolkit - percona-toolkit-configure -- ansible.builtin.include: scripts.yml +- name: scripts + ansible.builtin.import_tasks: scripts.yml tags: - configuration - percona-toolkit - percona-toolkit-scripts -- ansible.builtin.include: jobs.yml +- name: jobs + ansible.builtin.import_tasks: jobs.yml tags: - configuration - percona-toolkit