mirror of
https://github.com/roles-ansible/ansible_role_ranger.git
synced 2024-08-16 14:19:48 +02:00
Merge pull request #11 from roles-ansible/docs
Update docs and improve centos6 support
This commit is contained in:
commit
b458cd3740
2 changed files with 21 additions and 7 deletions
19
README.md
19
README.md
|
@ -25,6 +25,12 @@ install role:
|
|||
ansible-galaxy install do1jlr.ranger
|
||||
```
|
||||
|
||||
You can execute the role **directly via ansible ad-hoc command**, but it is highly recomended to create a ansible playbook
|
||||
```bash
|
||||
# example ad-hoc command
|
||||
ansible -m include_role -a "name=do1jlr.ranger" localhost
|
||||
```
|
||||
|
||||
Example Ansible-Playbook:
|
||||
```yml
|
||||
---
|
||||
|
@ -33,13 +39,8 @@ Example Ansible-Playbook:
|
|||
- do1jlr.ranger
|
||||
```
|
||||
|
||||
You can execute the role directly via ansible ad-hoc commands, but it is highly recomended to create a ansible playbook
|
||||
```bash
|
||||
# example ad-hoc command
|
||||
ansible -m include_role -a "name=do1jlr.ranger" localhost
|
||||
```
|
||||
|
||||
### use directly
|
||||
### use via git command
|
||||
|
||||
clone github repo:
|
||||
```bash
|
||||
|
@ -60,7 +61,7 @@ example Playbook:
|
|||
|
||||
Testing
|
||||
----------
|
||||
This role is tested with [these github-action](https://github.com/search?q=topic%3Acheck-ansible+topic%3Agithub-actions+org%3Aroles-ansible&type=Repositories) tests for different versions of differen linux systems. Linting is tested via travis-ci.
|
||||
This role is tested with [these github-action](https://github.com/search?q=topic%3Acheck-ansible+topic%3Agithub-actions+org%3Aroles-ansible&type=Repositories) tests for different versions of differen linux systems. Linting is tested via travis-ci and the [ansible-lint action](https://github.com/marketplace/actions/ansible-lint).
|
||||
If you want to find out more about our tests, please have a look at the github marketplace.
|
||||
|
||||
| test status | Github Marketplace |
|
||||
|
@ -88,6 +89,10 @@ If you want to find out more about our tests, please have a look at the github m
|
|||
| [![Ansible check fedora:32](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20fedora:32/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+fedora%3A32%22) | [ansible test with fedora 32](https://github.com/marketplace/actions/check-ansible-fedora-32) |
|
||||
| [![Ansible check fedora:31](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20fedora:31/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+fedora%3A31%22) | [ansible test with fedora 31](https://github.com/marketplace/actions/check-ansible-fedora-31) |
|
||||
| | |
|
||||
| [![Ansible check centos:latest](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20centos:latest/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+centos%3Alatest%22) | [ansible test with centos latest](https://github.com/marketplace/actions/check-ansible-centos-latest) |
|
||||
| [![Ansible check centos:centos8](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20centos:centos8/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+centos%3Acentos8%22) | [ansible test with centos centos8](https://github.com/marketplace/actions/check-ansible-centos-centos8) |
|
||||
| [![Ansible check centos:centos7](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20centos:centos7/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+centos%3Acentos7%22) | [ansible test with centos centos7](https://github.com/marketplace/actions/check-ansible-centos-centos7) |
|
||||
| | |
|
||||
| [![Ansible check alpine:latest](https://github.com/roles-ansible/role_ranger/workflows/Ansible%20check%20alpine:latest/badge.svg)](https://github.com/roles-ansible/role_ranger/actions?query=workflow%3A%22Ansible+check+alpine%3Alatest%22) | [ansible test with alpine latest](https://github.com/marketplace/actions/check-ansible-alpine-latest) |
|
||||
|
||||
|
||||
|
|
|
@ -37,6 +37,15 @@
|
|||
creates: '/usr/local/bin/ranger'
|
||||
when: not install_python3.failed
|
||||
|
||||
- name: install legacy-python f00
|
||||
become: true
|
||||
package:
|
||||
name:
|
||||
- python
|
||||
- python-setuptools
|
||||
state: present
|
||||
when: install_python3.failed
|
||||
|
||||
- name: install ranger with legacy-python
|
||||
become: yes
|
||||
command: python setup.py install --optimize=1
|
||||
|
|
Loading…
Reference in a new issue