From 787ab3a68d071e792b15c57a8258eb6e56d60b84 Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Sat, 13 Jun 2020 12:24:14 +0200 Subject: [PATCH 01/13] New GitHub action test Former-commit-id: 0ed1cda8c7e40161061760f718b6090d6006f2b1 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index da8a634..f66ef6c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,6 +18,6 @@ jobs: with: path: "${{ github.repository }}" - name: Molecule for Ansible - uses: MonolithProjects/action-molecule@v1.0.1 + uses: MonolithProjects/action-molecule@v1.2.0 env: PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} \ No newline at end of file From 188108243bafb84e1e1e96b7f8505a18d36ea14d Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Sat, 13 Jun 2020 12:43:58 +0200 Subject: [PATCH 02/13] Add update dnf cache Former-commit-id: e9f42e0ea8353d06ebbb6e467fd66754e2567257 --- tasks/install_deps.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/install_deps.yml b/tasks/install_deps.yml index 9121cbf..8f0f434 100644 --- a/tasks/install_deps.yml +++ b/tasks/install_deps.yml @@ -79,6 +79,7 @@ - zlib - libicu state: present + update_cache: yes when: (ansible_distribution == "RedHat") or (ansible_distribution == "CentOS") or (ansible_distribution == "Fedora") From 1ddf86fb0905b08c9e497de35d4a717672f9fc58 Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Sat, 13 Jun 2020 13:02:35 +0200 Subject: [PATCH 03/13] Clean metadata Former-commit-id: 6cbc7b9c28847d5ded5026f9a97592ee02867e22 --- tasks/install_deps.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/install_deps.yml b/tasks/install_deps.yml index 8f0f434..2471481 100644 --- a/tasks/install_deps.yml +++ b/tasks/install_deps.yml @@ -69,6 +69,13 @@ tags: - install +- name: yum-clean-metadata + command: yum clean metadata + args: + warn: no + when: (ansible_distribution == "RedHat") or + (ansible_distribution == "CentOS") or + (ansible_distribution == "Fedora") - name: Install dependencies on RHEL/CentOS/Fedora systems package: From 6781494bcb3b6a8e189d6cee4f3b871f08e40a7b Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Sat, 13 Jun 2020 13:09:39 +0200 Subject: [PATCH 04/13] Old action Former-commit-id: 91bfcd28aa9631989809d5700df5df1c7d375fe9 --- .github/workflows/main.yml | 2 +- tasks/install_deps.yml | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f66ef6c..da8a634 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,6 +18,6 @@ jobs: with: path: "${{ github.repository }}" - name: Molecule for Ansible - uses: MonolithProjects/action-molecule@v1.2.0 + uses: MonolithProjects/action-molecule@v1.0.1 env: PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} \ No newline at end of file diff --git a/tasks/install_deps.yml b/tasks/install_deps.yml index 2471481..0b0aac6 100644 --- a/tasks/install_deps.yml +++ b/tasks/install_deps.yml @@ -69,14 +69,6 @@ tags: - install -- name: yum-clean-metadata - command: yum clean metadata - args: - warn: no - when: (ansible_distribution == "RedHat") or - (ansible_distribution == "CentOS") or - (ansible_distribution == "Fedora") - - name: Install dependencies on RHEL/CentOS/Fedora systems package: name: From 6e0b5dc9b55cd6c321f75e4ecfa18d9a1bc80c3f Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Sat, 13 Jun 2020 13:16:01 +0200 Subject: [PATCH 05/13] New action Former-commit-id: 0fc26a5ee1cbb435a0a3bb233698597ca7720a39 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index da8a634..f66ef6c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,6 +18,6 @@ jobs: with: path: "${{ github.repository }}" - name: Molecule for Ansible - uses: MonolithProjects/action-molecule@v1.0.1 + uses: MonolithProjects/action-molecule@v1.2.0 env: PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} \ No newline at end of file From 64e174ad65cedb77776dd57bd858c347c05e33cd Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Sat, 13 Jun 2020 15:23:40 +0200 Subject: [PATCH 06/13] Fix metadata Former-commit-id: b175c687d2b88f4f09a46d16ab7300cd8a2016a7 --- tasks/install_deps.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tasks/install_deps.yml b/tasks/install_deps.yml index 0b0aac6..d6e35d1 100644 --- a/tasks/install_deps.yml +++ b/tasks/install_deps.yml @@ -69,6 +69,15 @@ tags: - install + +- name: Clear metadata + command: yum clean metadata + when: (ansible_distribution == "RedHat") or + (ansible_distribution == "CentOS") or + (ansible_distribution == "Fedora") + tags: + - install + - name: Install dependencies on RHEL/CentOS/Fedora systems package: name: From d73633c13abd0e5dfdc696f76e357a749c3721ae Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Sat, 13 Jun 2020 15:26:01 +0200 Subject: [PATCH 07/13] Fix metadata Former-commit-id: e1ef13ed947480afc28d65c0d90cd89091bcd726 --- tasks/install_deps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/install_deps.yml b/tasks/install_deps.yml index d6e35d1..d8ad342 100644 --- a/tasks/install_deps.yml +++ b/tasks/install_deps.yml @@ -70,7 +70,7 @@ - install -- name: Clear metadata +- name: Clean metadata command: yum clean metadata when: (ansible_distribution == "RedHat") or (ansible_distribution == "CentOS") or From 8bff2cdc4054c3d6f7c6b59e67dcbed049e46449 Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Sat, 13 Jun 2020 15:30:48 +0200 Subject: [PATCH 08/13] Fix metadata Former-commit-id: 3f3409939fc8a5f29356d5d18947eba88cc2e312 --- molecule/default/molecule.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 6189242..8a88362 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -125,7 +125,7 @@ scenario: name: default test_sequence: - dependency - - lint + # - lint - cleanup - destroy - syntax From 260bf4fdb9bac38a245455f399f64aec89101b7d Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Sun, 14 Jun 2020 13:26:08 +0200 Subject: [PATCH 09/13] Revert tests Former-commit-id: e8e1ffc5ee56002dc368f0056de1ee54a4fe5e72 --- molecule/default/molecule.yml | 2 +- tasks/install_deps.yml | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 8a88362..6189242 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -125,7 +125,7 @@ scenario: name: default test_sequence: - dependency - # - lint + - lint - cleanup - destroy - syntax diff --git a/tasks/install_deps.yml b/tasks/install_deps.yml index d8ad342..0b0aac6 100644 --- a/tasks/install_deps.yml +++ b/tasks/install_deps.yml @@ -69,15 +69,6 @@ tags: - install - -- name: Clean metadata - command: yum clean metadata - when: (ansible_distribution == "RedHat") or - (ansible_distribution == "CentOS") or - (ansible_distribution == "Fedora") - tags: - - install - - name: Install dependencies on RHEL/CentOS/Fedora systems package: name: From 8c1311052d8c5de488b89f1a816b3f3d8c9f74a7 Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Sun, 14 Jun 2020 13:32:22 +0200 Subject: [PATCH 10/13] Add Ansible tags tests with Molecule Former-commit-id: 0944ea7f6f076344ecfdc57c04d77f73f29cf758 --- .github/workflows/main.yml | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f66ef6c..fb39304 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,4 +20,38 @@ jobs: - name: Molecule for Ansible uses: MonolithProjects/action-molecule@v1.2.0 env: - PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} \ No newline at end of file + PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + + test_install: + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - name: checkout + uses: actions/checkout@v2 + with: + path: "${{ github.repository }}" + - name: Molecule for Ansible + uses: MonolithProjects/action-molecule@v1.2.0 + env: + PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + with: + molecule_command: converge + converge_tags: install + + test_uninstall: + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - name: checkout + uses: actions/checkout@v2 + with: + path: "${{ github.repository }}" + - name: Molecule for Ansible + uses: MonolithProjects/action-molecule@v1.2.0 + env: + PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + with: + molecule_command: converge + converge_tags: uninstall \ No newline at end of file From 6dfc320d889a46d2ef734a0de482d1d9f2563331 Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Sun, 14 Jun 2020 13:39:13 +0200 Subject: [PATCH 11/13] Molecule jobs dependency Former-commit-id: a4296699bdde9f54caed14d4fea9b7b523ef2884 --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fb39304..56a663f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,7 @@ jobs: test_install: runs-on: ubuntu-latest + needs: test strategy: fail-fast: false steps: @@ -41,6 +42,7 @@ jobs: test_uninstall: runs-on: ubuntu-latest + needs: test_install strategy: fail-fast: false steps: From a87c0a78d35c31938a466208b4758c56d676bd1d Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Sun, 14 Jun 2020 17:06:55 +0200 Subject: [PATCH 12/13] Molecule jobs dependency Former-commit-id: 63f4c7c5b0ee6f8e0d2fd1ada9b3436e48672838 --- molecule/default/requirements.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/molecule/default/requirements.yml b/molecule/default/requirements.yml index 9b5d673..bc9a4f4 100644 --- a/molecule/default/requirements.yml +++ b/molecule/default/requirements.yml @@ -1,5 +1,5 @@ --- - role: robertdebock.epel version: master -- role: monolithprojects.user_management - version: master \ No newline at end of file +# - role: monolithprojects.user_management +# version: master \ No newline at end of file From 273e2d828eea893da7563397074b5b9fb5300dad Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Sun, 14 Jun 2020 17:27:59 +0200 Subject: [PATCH 13/13] Molecule jobs dependency Former-commit-id: 6bed3917bee2401a4966e64e66f63b98be21af1d --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 56a663f..f6a8e10 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,6 @@ jobs: PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} with: molecule_command: converge - converge_tags: install test_uninstall: runs-on: ubuntu-latest