From 30993b64156d7fe2fcf93c17d24e058fd5cddaa8 Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Tue, 10 Dec 2019 07:14:52 +0100 Subject: [PATCH] Remove modules from README.md, they add no value. --- generate.yml | 7 ------- scripts/modules.sh | 3 --- templates/README.md.j2 | 8 -------- 3 files changed, 18 deletions(-) delete mode 100755 scripts/modules.sh diff --git a/generate.yml b/generate.yml index b520ba4..4b75679 100755 --- a/generate.yml +++ b/generate.yml @@ -117,13 +117,6 @@ when: - verify.stat.exists | bool - - name: load modules - command: "{{ playbook_dir }}/scripts/modules.sh" - args: - chdir: "{{ role_path }}" - register: modules - changed_when: no - - name: load galaxy_id shell: "ansible-galaxy info robertdebock.{{ role_name }} | grep ' id: ' | awk '{print $NF}'" register: galaxy_id diff --git a/scripts/modules.sh b/scripts/modules.sh deleted file mode 100755 index 9a981e4..0000000 --- a/scripts/modules.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -echo "---" ; cat tasks/* handlers/* | grep -A1 -E '( )?^- name:' | grep -e '^ ' | grep -v 'block' | cut -d: -f1 | sort | uniq | while read module ; do echo "- ${module}" ; done diff --git a/templates/README.md.j2 b/templates/README.md.j2 index 46699c8..1a19ceb 100644 --- a/templates/README.md.j2 +++ b/templates/README.md.j2 @@ -136,14 +136,6 @@ image="centos" tox image="debian" tag="stable" tox ``` -Modules -------- - -This role uses the following modules: -```yaml -{{ modules.stdout }} -``` - License -------