From a686534dca010613161703f21bae2880dddf4c4b Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 20 Feb 2020 14:15:03 +0100 Subject: [PATCH 01/21] Add check for debian:sid --- .github/workflows/ansible-debian-sid.yml | 16 ++++++++++++++++ README.md | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ansible-debian-sid.yml diff --git a/.github/workflows/ansible-debian-sid.yml b/.github/workflows/ansible-debian-sid.yml new file mode 100644 index 0000000..72fe3a8 --- /dev/null +++ b/.github/workflows/ansible-debian-sid.yml @@ -0,0 +1,16 @@ +name: Ansible check debian:sid + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with debian:sid + uses: roles-ansible/check-ansible-debian-sid-action@master + with: + targets: "./" diff --git a/README.md b/README.md index edd2dd6..32c01b4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ [![Build Status](https://travis-ci.org/chaos-bodensee/role-ranger.svg?branch=master)](https://travis-ci.org/chaos-bodensee/role-ranger) [![Ansible Lint check](https://github.com/chaos-bodensee/role-ranger/workflows/Ansible%20Lint%20check/badge.svg)](https://github.com/chaos-bodensee/role-ranger/actions?query=workflow%3A%22Ansible+Lint+check%22) [![Ansible check debian:stable](https://github.com/chaos-bodensee/role-ranger/workflows/Ansible%20check%20debian:stable/badge.svg)](https://github.com/chaos-bodensee/role-ranger/actions?query=workflow%3A%22Ansible+check+debian%3Astable%22) -[![Ansible check debian:stable](https://github.com/chaos-bodensee/role-ranger/workflows/Ansible%20check%20debian:buster/badge.svg)](https://github.com/chaos-bodensee/role-ranger/actions?query=workflow%3A%22Ansible+check+debian%3Abuster%22) +[![Ansible check debian:buster](https://github.com/chaos-bodensee/role-ranger/workflows/Ansible%20check%20debian:buster/badge.svg)](https://github.com/chaos-bodensee/role-ranger/actions?query=workflow%3A%22Ansible+check+debian%3Abuster%22) +[![Ansible check debian:sid](https://github.com/chaos-bodensee/role-ranger/workflows/Ansible%20check%20debian:sid/badge.svg)](https://github.com/chaos-bodensee/role-ranger/actions?query=workflow%3A%22Ansible+check+debian%3Asid%22) [![MIT License](https://raw.githubusercontent.com/chaos-bodensee/role-ranger/master/.github/license.svg?sanitize=true)](https://github.com/chaos-bodensee/role-ranger/blob/master/LICENSE) role-ranger From fdc46c6a86ffb8b22d20e52d33941928901dd62e Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 20 Feb 2020 17:24:22 +0100 Subject: [PATCH 02/21] update travis and install stretch check --- .github/workflows/ansible-debian-stretch.yml | 16 ++++++++++++++++ .travis.yml | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/ansible-debian-stretch.yml diff --git a/.github/workflows/ansible-debian-stretch.yml b/.github/workflows/ansible-debian-stretch.yml new file mode 100644 index 0000000..19ac5fb --- /dev/null +++ b/.github/workflows/ansible-debian-stretch.yml @@ -0,0 +1,16 @@ +name: Ansible check debian:stretch + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with debian:stretch + uses: roles-ansible/check-ansible-debian-stretch-action@master + with: + targets: "./" diff --git a/.travis.yml b/.travis.yml index 608b0b4..f857ba3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,4 +23,7 @@ script: - echo -e "\n\n\n\n\nWe use github actions for more detailed tests.\n\nMore details about that in our github repo at:\nhttps://github.com/chaos-bodensee/role-ranger/actions\n\n\n\n\n\n" notifications: + email: + on_success: never + on_failure: always webhooks: https://galaxy.ansible.com/api/v1/notifications/ From cbb73ca64bc33d1ec697986da15e3371fff07fb2 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 20 Feb 2020 19:56:33 +0100 Subject: [PATCH 03/21] test with jessie --- .github/workflows/ansible-debian-jessie.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/ansible-debian-jessie.yml diff --git a/.github/workflows/ansible-debian-jessie.yml b/.github/workflows/ansible-debian-jessie.yml new file mode 100644 index 0000000..abe651e --- /dev/null +++ b/.github/workflows/ansible-debian-jessie.yml @@ -0,0 +1,16 @@ +name: Ansible check debian:jessie + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with debian:jessie + uses: roles-ansible/check-ansible-debian-jessie-action@master + with: + targets: "./" From 65204d1afd521efa0f7a8a5249bc22af8f02a8e9 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 20 Feb 2020 21:29:46 +0100 Subject: [PATCH 04/21] test deployment on ubuntu:latets --- .github/workflows/ansible-ubuntu-latest.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/ansible-ubuntu-latest.yml diff --git a/.github/workflows/ansible-ubuntu-latest.yml b/.github/workflows/ansible-ubuntu-latest.yml new file mode 100644 index 0000000..2e34685 --- /dev/null +++ b/.github/workflows/ansible-ubuntu-latest.yml @@ -0,0 +1,16 @@ +name: Ansible check ubuntu:latest + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with ubuntu:latest + uses: roles-ansible/check-ansible-ubuntu-latest-action@master + with: + targets: "./" From 1faf0490d417c772f7a203cefe71e18d8eae9904 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 24 Feb 2020 10:53:47 +0100 Subject: [PATCH 05/21] Add test for ubuntu xenial --- .github/workflows/ansible-ubuntu-xenial.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/ansible-ubuntu-xenial.yml diff --git a/.github/workflows/ansible-ubuntu-xenial.yml b/.github/workflows/ansible-ubuntu-xenial.yml new file mode 100644 index 0000000..3bf993d --- /dev/null +++ b/.github/workflows/ansible-ubuntu-xenial.yml @@ -0,0 +1,16 @@ +name: Ansible check ubuntu:xenial + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with ubuntu:xenial + uses: roles-ansible/check-ansible-ubuntu-xenial-action@master + with: + targets: "./" From 7e1ac175e5e4af98becfc3261bba99218d62ac7e Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 24 Feb 2020 12:55:27 +0100 Subject: [PATCH 06/21] add eoan --- .github/workflows/ansible-ubuntu-eoan.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/ansible-ubuntu-eoan.yml diff --git a/.github/workflows/ansible-ubuntu-eoan.yml b/.github/workflows/ansible-ubuntu-eoan.yml new file mode 100644 index 0000000..626181d --- /dev/null +++ b/.github/workflows/ansible-ubuntu-eoan.yml @@ -0,0 +1,16 @@ +name: Ansible check ubuntu:eoan + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-eoan + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with ubuntu:eoan + uses: roles-ansible/check-ansible-ubuntu-eoan-action@master + with: + targets: "./" From e4d7a7c6a6dc07d5dee4c67f43803523486d1f7b Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 24 Feb 2020 13:14:05 +0100 Subject: [PATCH 07/21] Add test for ubuntu-bionic --- .github/workflows/ansible-ubuntu-bionic.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/ansible-ubuntu-bionic.yml diff --git a/.github/workflows/ansible-ubuntu-bionic.yml b/.github/workflows/ansible-ubuntu-bionic.yml new file mode 100644 index 0000000..39ba87c --- /dev/null +++ b/.github/workflows/ansible-ubuntu-bionic.yml @@ -0,0 +1,16 @@ +name: Ansible check ubuntu:bionic + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-bionic + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with ubuntu:bionic + uses: roles-ansible/check-ansible-ubuntu-bionic-action@master + with: + targets: "./" From 28706dee0ff665d29f3dfdab2e9ab255155c46a6 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 24 Feb 2020 16:16:45 +0100 Subject: [PATCH 08/21] Add test for ubuntu:focal --- .github/workflows/ansible-ubuntu-focal.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/ansible-ubuntu-focal.yml diff --git a/.github/workflows/ansible-ubuntu-focal.yml b/.github/workflows/ansible-ubuntu-focal.yml new file mode 100644 index 0000000..4d4999f --- /dev/null +++ b/.github/workflows/ansible-ubuntu-focal.yml @@ -0,0 +1,16 @@ +name: Ansible check ubuntu:focal + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with ubuntu:focal + uses: roles-ansible/check-ansible-ubuntu-focal-action@master + with: + targets: "./" From 53fbcc8b1928e8fadb127cb2a68a6e2f522e9497 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 24 Feb 2020 18:43:11 +0100 Subject: [PATCH 09/21] Add test for disco --- .github/workflows/ansible-ubuntu-disco.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/ansible-ubuntu-disco.yml diff --git a/.github/workflows/ansible-ubuntu-disco.yml b/.github/workflows/ansible-ubuntu-disco.yml new file mode 100644 index 0000000..334a190 --- /dev/null +++ b/.github/workflows/ansible-ubuntu-disco.yml @@ -0,0 +1,16 @@ +name: Ansible check ubuntu:disco + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with ubuntu:disco + uses: roles-ansible/check-ansible-ubuntu-disco-action@master + with: + targets: "./" From a8f3b31f73b378bd5fa1f6ff08307638bf45cff0 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 24 Feb 2020 18:53:32 +0100 Subject: [PATCH 10/21] Add test for ubuntu:trusty --- .github/workflows/ansible-ubuntu-trusty.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/ansible-ubuntu-trusty.yml diff --git a/.github/workflows/ansible-ubuntu-trusty.yml b/.github/workflows/ansible-ubuntu-trusty.yml new file mode 100644 index 0000000..a18c397 --- /dev/null +++ b/.github/workflows/ansible-ubuntu-trusty.yml @@ -0,0 +1,16 @@ +name: Ansible check ubuntu:trusty + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with ubuntu:trusty + uses: roles-ansible/check-ansible-ubuntu-trusty-action@master + with: + targets: "./" From f38d5ef5782634547caf943ce1bb5971b11100bf Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 24 Feb 2020 18:59:53 +0100 Subject: [PATCH 11/21] Use ubuntu-latest correkt --- .github/workflows/ansible-ubuntu-bionic.yml | 2 +- .github/workflows/ansible-ubuntu-eoan.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ansible-ubuntu-bionic.yml b/.github/workflows/ansible-ubuntu-bionic.yml index 39ba87c..aea24a2 100644 --- a/.github/workflows/ansible-ubuntu-bionic.yml +++ b/.github/workflows/ansible-ubuntu-bionic.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-bionic + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/ansible-ubuntu-eoan.yml b/.github/workflows/ansible-ubuntu-eoan.yml index 626181d..30b5779 100644 --- a/.github/workflows/ansible-ubuntu-eoan.yml +++ b/.github/workflows/ansible-ubuntu-eoan.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-eoan + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From 6dfcdf7c665b6560e6d52bd2181c51fc4a248c9f Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 26 Feb 2020 13:39:47 +0100 Subject: [PATCH 12/21] update docs --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 32c01b4..85148f6 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Ansible role to install the ranger file manager on linux. ranger is a console fi ------------- First we try to install ``ranger`` with the default package manager. If this fails, we download the ranger git and compile it by ourself *(with python 3)*.
-We also perform a versioncheck that will check if a newer version of this role has been executed on this host before. You can disable it by setting ``ansible_versionscheck`` to `` false`` +We also could perform a simple versioncheck that will check if a newer version of this role has been executed on this host before. You can enable it by setting ``submodules_versioncheck`` to ``true`` How to use this role ------------- @@ -52,6 +52,8 @@ Example Playbook: - role-ranger tags: - ranger + vars: + submodules_versioncheck: true ``` From cf7e77bb8a74d145ac23b97842a79387dbcaea55 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 29 Feb 2020 11:42:15 +0100 Subject: [PATCH 13/21] first centos check --- .github/workflows/ansible-centos-latest.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/ansible-centos-latest.yml diff --git a/.github/workflows/ansible-centos-latest.yml b/.github/workflows/ansible-centos-latest.yml new file mode 100644 index 0000000..de991de --- /dev/null +++ b/.github/workflows/ansible-centos-latest.yml @@ -0,0 +1,16 @@ +name: Ansible check centos:latest + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with ubuntu:latest + uses: roles-ansible/check-ansible-centos-latest-action@master + with: + targets: "./" From 38137889682be6a4d961d5c1d76d3efc741528fc Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 29 Feb 2020 12:47:00 +0100 Subject: [PATCH 14/21] Add check for centos8 --- .github/workflows/ansible-centos-centos8.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/ansible-centos-centos8.yml diff --git a/.github/workflows/ansible-centos-centos8.yml b/.github/workflows/ansible-centos-centos8.yml new file mode 100644 index 0000000..5d7acc9 --- /dev/null +++ b/.github/workflows/ansible-centos-centos8.yml @@ -0,0 +1,16 @@ +name: Ansible check centos:centos8 + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with ubuntu:centos8 + uses: roles-ansible/check-ansible-centos-centos8-action@master + with: + targets: "./" From 9258fa06f55af61a8c18073997b0564b01394b71 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 29 Feb 2020 13:15:13 +0100 Subject: [PATCH 15/21] add centos7 check --- .github/workflows/ansible-centos-centos7.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/ansible-centos-centos7.yml diff --git a/.github/workflows/ansible-centos-centos7.yml b/.github/workflows/ansible-centos-centos7.yml new file mode 100644 index 0000000..90bff41 --- /dev/null +++ b/.github/workflows/ansible-centos-centos7.yml @@ -0,0 +1,16 @@ +name: Ansible check centos:centos7 + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with ubuntu:centos7 + uses: roles-ansible/check-ansible-centos-centos7-action@master + with: + targets: "./" From 56fda159d0adbf58650cb59827867c68aa945f67 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 29 Feb 2020 16:39:31 +0100 Subject: [PATCH 16/21] centos6 --- .github/workflows/ansible-centos-centos6.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/ansible-centos-centos6.yml diff --git a/.github/workflows/ansible-centos-centos6.yml b/.github/workflows/ansible-centos-centos6.yml new file mode 100644 index 0000000..6907237 --- /dev/null +++ b/.github/workflows/ansible-centos-centos6.yml @@ -0,0 +1,16 @@ +name: Ansible check centos:centos6 + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: ansible check with ubuntu:centos6 + uses: roles-ansible/check-ansible-centos-centos6-action@master + with: + targets: "./" From bb6117a22d740c47117ee5f757636381a5542cf9 Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 1 Mar 2020 19:37:20 +0100 Subject: [PATCH 17/21] trigger build --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 32c01b4..a1ab7a2 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [![Ansible check debian:sid](https://github.com/chaos-bodensee/role-ranger/workflows/Ansible%20check%20debian:sid/badge.svg)](https://github.com/chaos-bodensee/role-ranger/actions?query=workflow%3A%22Ansible+check+debian%3Asid%22) [![MIT License](https://raw.githubusercontent.com/chaos-bodensee/role-ranger/master/.github/license.svg?sanitize=true)](https://github.com/chaos-bodensee/role-ranger/blob/master/LICENSE) + role-ranger ============== From 4e0f79fba268ed0c1aa5de77c33351a3b4c6992d Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 2 Mar 2020 15:09:17 +0100 Subject: [PATCH 18/21] ? --- defaults/main.yml | 11 +++++++---- tasks/main.yml | 4 ++++ vars/main.yml | 7 +++++++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 940e2bf..c2f6ec5 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,6 +1,9 @@ --- -submodules_versioncheck: true +# should we do a version check? (recomended) +submodules_versioncheck: false -ranger_repo: 'https://github.com/ranger/ranger.git' -ranger_branch: 'master' -ranger_download_directory: "{{ x_ansible_download_dir | default('~/.ansible/tmp/downloads/ranger') }}" +# variables for ranger +ranger: + repo: 'https://github.com/ranger/ranger.git' + branch: 'master' + download_directory: "{{ x_ansible_download_dir | default('~/.ansible/tmp/downloads/ranger') }}" diff --git a/tasks/main.yml b/tasks/main.yml index 300fa93..0e0bc00 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,4 +1,8 @@ --- +- name: combine ranger configuration + set_fact: + ranger: "{{ _ranger|combine(ranger, recursive=True) }}" + - include_tasks: versioncheck.yml when: submodules_versioncheck|bool diff --git a/vars/main.yml b/vars/main.yml index 264ec8f..9892adf 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,10 @@ --- +# versionscheck playbook_version_number: 1025 # should be over ninethousand playbook_version_path: 'role-ranger_chaos-bodensee_github.com.version' + +# variables for ranger +ranger: + repo: 'https://github.com/ranger/ranger.git' + branch: 'master' + download_directory: "{{ x_ansible_download_dir | default('~/.ansible/tmp/downloads/ranger') }}" From 789d52d64506a0b570c7bc72df82f38c4bd32157 Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 4 Mar 2020 23:00:16 +0100 Subject: [PATCH 19/21] fix var name and add centos6 support" --- tasks/compile_ranger.yml | 11 +++++++++++ vars/main.yml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/tasks/compile_ranger.yml b/tasks/compile_ranger.yml index 1f5e684..3300d43 100644 --- a/tasks/compile_ranger.yml +++ b/tasks/compile_ranger.yml @@ -26,6 +26,8 @@ package: name: python3 state: present + register: install_python3 + ignore_errors: yes - name: install ranger with python3 become: yes @@ -33,3 +35,12 @@ args: chdir: "{{ ranger_download_directory }}" creates: '/usr/local/bin/ranger' + when: not install_python3.failed + +- name: install ranger with legacy-python + become: yes + command: python setup.py install --optimize=1 + args: + chdir: "{{ ranger_download_directory }}" + creates: '/usr/local/bin/ranger' + when: install_python3.failed diff --git a/vars/main.yml b/vars/main.yml index 9892adf..8f87b03 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -4,7 +4,7 @@ playbook_version_number: 1025 # should be over ninethousand playbook_version_path: 'role-ranger_chaos-bodensee_github.com.version' # variables for ranger -ranger: +_ranger: repo: 'https://github.com/ranger/ranger.git' branch: 'master' download_directory: "{{ x_ansible_download_dir | default('~/.ansible/tmp/downloads/ranger') }}" From 255ee8a19af24b474c4905395719c5f7c2eb78fc Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 4 Mar 2020 23:11:10 +0100 Subject: [PATCH 20/21] update docs --- .travis.yml | 2 +- README.md | 45 ++++++++++++++++++++++++--------------------- vars/main.yml | 2 +- 3 files changed, 26 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index f857ba3..4abd555 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ install: script: - ansible-galaxy install do1jlr.ranger - ansible-lint . - - echo -e "\n\n\n\n\nWe use github actions for more detailed tests.\n\nMore details about that in our github repo at:\nhttps://github.com/chaos-bodensee/role-ranger/actions\n\n\n\n\n\n" + - echo -e "\n\n\n\n\nWe use github actions for more detailed tests.\n\nMore details about that in our github repo at:\nhttps://github.com/roles-ansible/role-ranger/actions\n\n\n\n\n\n" notifications: email: diff --git a/README.md b/README.md index 47c57eb..69d53e5 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,7 @@ -[![Ansible Galaxy](https://raw.githubusercontent.com/chaos-bodensee/role-ranger/master/.github/galaxy.svg?sanitize=true)](https://galaxy.ansible.com/do1jlr/ranger) -[![Build Status](https://travis-ci.org/chaos-bodensee/role-ranger.svg?branch=master)](https://travis-ci.org/chaos-bodensee/role-ranger) -[![Ansible Lint check](https://github.com/chaos-bodensee/role-ranger/workflows/Ansible%20Lint%20check/badge.svg)](https://github.com/chaos-bodensee/role-ranger/actions?query=workflow%3A%22Ansible+Lint+check%22) -[![Ansible check debian:stable](https://github.com/chaos-bodensee/role-ranger/workflows/Ansible%20check%20debian:stable/badge.svg)](https://github.com/chaos-bodensee/role-ranger/actions?query=workflow%3A%22Ansible+check+debian%3Astable%22) -[![Ansible check debian:buster](https://github.com/chaos-bodensee/role-ranger/workflows/Ansible%20check%20debian:buster/badge.svg)](https://github.com/chaos-bodensee/role-ranger/actions?query=workflow%3A%22Ansible+check+debian%3Abuster%22) -[![Ansible check debian:sid](https://github.com/chaos-bodensee/role-ranger/workflows/Ansible%20check%20debian:sid/badge.svg)](https://github.com/chaos-bodensee/role-ranger/actions?query=workflow%3A%22Ansible+check+debian%3Asid%22) -[![MIT License](https://raw.githubusercontent.com/chaos-bodensee/role-ranger/master/.github/license.svg?sanitize=true)](https://github.com/chaos-bodensee/role-ranger/blob/master/LICENSE) +[![Ansible Galaxy](https://raw.githubusercontent.com/roles-ansible/role_ranger/master/.github/galaxy.svg?sanitize=true)](https://galaxy.ansible.com/do1jlr/ranger) [![Build Status](https://travis-ci.org/roles-ansible/role_ranger.svg?branch=master)](https://travis-ci.org/roles-ansible/role_ranger) [![MIT License](https://raw.githubusercontent.com/roles-ansible/role_ranger/master/.github/license.svg?sanitize=true)](https://github.com/roles-ansible/role_ranger/blob/master/LICENSE) - role-ranger + role_ranger ============== Ansible role to install the ranger file manager on linux. ranger is a console file manager with VI key bindings. More info about ranger is available at [github.com/ranger/ranger](https://github.com/ranger/ranger.git). @@ -21,7 +15,7 @@ We also could perform a simple versioncheck that will check if a newer version o How to use this role ------------- -You can either use this role via ansible galaxy or use it directly from [this](https://github.com/chaos-bodensee/role-ansible_version.git) git repository. +You can either use this role via ansible galaxy or use it directly from [this](https://github.com/roles-ansible/role_ranger.git) git repository. ### ansible galaxy @@ -42,7 +36,7 @@ Example Ansible-Playbook: Ansible-Rolle clonen: ```bash -git clone https://github.com/chaos-bodensee/role-ranger.git +git clone https://github.com/roles-ansible/role_ranger.git ``` Example Playbook: @@ -50,21 +44,30 @@ Example Playbook: --- - hosts: localhost roles: - - role-ranger + - role_ranger tags: - ranger vars: submodules_versioncheck: true ``` +### Testing +This role is tested with [these github-action](https://github.com/search?q=topic%3Acentos+topic%3Acheck-ansible+topic%3Agithub-actions+org%3Aroles-ansible&type=Repositories) tests for different versions of centos. Linting is tested via travis-ci. +If you want to find out more about our tests, please have a look at the github marketplace. -``` -[WORK-IN-PROGRESS] - -done: -- support for archlinux, centos + debian -- ansible galaxy support - -started: -- travis && docker / actions checks -``` +| test status | Github Marketplace | +| :--------- | :---------------- | +| [![Travis Build Status](https://travis-ci.org/roles-ansible/role_ranger.svg?branch=master)](https://travis-ci.org/roles-ansible/role_ranger) | [.travis.yml](https://github.com/roles-ansible/role_ranger/blob/master/.travis.yml) | +| [![Ansible Lint check](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20Lint%20check/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+Lint+check%22) | [ansible-lint action](https://github.com/marketplace/actions/ansible-lint) +| [![Ansible check debian:stable](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20debian:stable/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+debian%3Astable%22) | [ansible test with debian stable](https://github.com/marketplace/actions/check-ansible-debian-stable) | +| [![Ansible check debian:sid](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20debian:sid/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+debian%3Asid%22) | [ansible test with debian sid](https://github.com/marketplace/actions/check-ansible-debian-sid) | +| [![Ansible check debian:buster](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20debian:buster/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+debian%3Abuster%22) | [ansible test with debian buster](https://github.com/marketplace/actions/check-ansible-debian-buster) | +| [![Ansible check debian:jessie](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20debian:jessie/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+debian%3Ajessie%22) | [ansible test with debian jessie](https://github.com/marketplace/actions/check-ansible-debian-jessie) | +| [![Ansible check debian:stretch](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20debian:stretch/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+debian%3Astretch%22) | [ansible test with debian stretch](https://github.com/marketplace/actions/check-ansible-debian-stretch) | +| [![Ansible check ubuntu:latest](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20ubuntu:latest/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+ubuntu%3Alatest%22) | [ansible test with ubuntu latest](https://github.com/marketplace/actions/check-ansible-ubuntu-latest) | +| [![Ansible check ubuntu:bionic](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20ubuntu:bionic/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+ubuntu%3Abionic%22) | [ansible test with ubuntu bionic](https://github.com/marketplace/actions/check-ansible-ubuntu-bionic) | +| [![Ansible check ubuntu:disco](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20ubuntu:disco/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+ubuntu%3Adisco%22) | [ansible test with ubuntu disco](https://github.com/marketplace/actions/check-ansible-ubuntu-disco) | +| [![Ansible check ubuntu:eoan](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20ubuntu:eoan/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+ubuntu%3Aeoan%22) | [ansible test with ubuntu eoan](https://github.com/marketplace/actions/check-ansible-ubuntu-eoan) | +| [![Ansible check ubuntu:focal](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20ubuntu:focal/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+ubuntu%3Afocal%22) | [ansible test with ubuntu focal](https://github.com/marketplace/actions/check-ansible-ubuntu-focal) | +| [![Ansible check ubuntu:trusty](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20ubuntu:trusty/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+ubuntu%3Atrusty%22) | [ansible test with ubuntu trusty](https://github.com/marketplace/actions/check-ansible-ubuntu-trusty) | +| [![Ansible check ubuntu:xenial](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20ubuntu:xenial/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+ubuntu%3Axenial%22) | [ansible test with ubuntu xenial](https://github.com/marketplace/actions/check-ansible-ubuntu-xenial) | diff --git a/vars/main.yml b/vars/main.yml index 8f87b03..a1d114c 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,7 +1,7 @@ --- # versionscheck playbook_version_number: 1025 # should be over ninethousand -playbook_version_path: 'role-ranger_chaos-bodensee_github.com.version' +playbook_version_path: 'role-ranger_roles-ansible_github.com.version' # variables for ranger _ranger: From 6e1de08ac79806e99dc16dc23015841ae7c9ba8c Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 4 Mar 2020 23:14:05 +0100 Subject: [PATCH 21/21] Fix old variable names --- tasks/compile_ranger.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tasks/compile_ranger.yml b/tasks/compile_ranger.yml index 3300d43..6ae249d 100644 --- a/tasks/compile_ranger.yml +++ b/tasks/compile_ranger.yml @@ -1,9 +1,9 @@ --- - name: download ranger git repo git: - repo: "{{ ranger_repo }}" - dest: "{{ ranger_download_directory }}" - version: "{{ ranger_branch }}" + repo: "{{ ranger.repo }}" + dest: "{{ ranger.download_directory }}" + version: "{{ ranger.branch }}" - name: install build packages become: true @@ -17,7 +17,7 @@ - name: Run 'install' target as root become: yes make: - chdir: "{{ ranger_download_directory }}" + chdir: "{{ ranger.download_directory }}" target: install when: ansible_python_version[:1] == '3' @@ -33,7 +33,7 @@ become: yes command: python3 setup.py install --optimize=1 args: - chdir: "{{ ranger_download_directory }}" + chdir: "{{ ranger.download_directory }}" creates: '/usr/local/bin/ranger' when: not install_python3.failed @@ -41,6 +41,6 @@ become: yes command: python setup.py install --optimize=1 args: - chdir: "{{ ranger_download_directory }}" + chdir: "{{ ranger.download_directory }}" creates: '/usr/local/bin/ranger' when: install_python3.failed