From 48f50f4865287a15c06128ae3e9a82af77be5fee Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Thu, 21 Dec 2023 13:17:25 +0100 Subject: [PATCH] Remove problematic code block. --- CONTRIBUTING.md | 8 ++++---- tasks/partition.yml | 11 ----------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 110029f..e8abe67 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -29,7 +29,7 @@ In you own GitHub namespace, make the required changes. I typically do that by cloning the repository (in your namespace) locally: -``` +```shell git clone git@github.com:YOURNAMESPACE/ansible-role-storage.git ``` @@ -39,19 +39,19 @@ Now you can start to edit on your laptop. Install [molecule](https://molecule.readthedocs.io/en/stable/) and [Tox](https://tox.readthedocs.io/): -``` +```shell pip install molecule tox ansible-lint docker ``` And run `molecule test`. If you want to test a specific distribution, set `image` and optionally `tag`: -``` +```shell image=centos tag=7 molecule test ``` Once it start to work, you can test multiple version of Ansible: -``` +```shell image=centos tag=7 tox ``` diff --git a/tasks/partition.yml b/tasks/partition.yml index e9218a2..a0f46e8 100644 --- a/tasks/partition.yml +++ b/tasks/partition.yml @@ -19,17 +19,6 @@ when: - partition.label is defined -- name: partition | Rescan device - block: - - name: partition | Rescan device - ansible.builtin.lineinfile: - path: "{{ partition.name }}" - line: "1" - rescue: - - name: partition | Inform user - ansible.builtin.debug: - msg: Rescanning causes a freeze, lets continue - - name: partition | Create partitions community.general.parted: device: "{{ partition.name }}"