mirror of
https://github.com/roles-ansible/ansible_role_base.git
synced 2024-08-16 14:29:50 +02:00
resolve yamllint
- add yamllint - remove travis - cleanup
This commit is contained in:
parent
16ad6af78f
commit
2814ffcfee
28 changed files with 178 additions and 139 deletions
4
.github/FUNDING.yml
vendored
4
.github/FUNDING.yml
vendored
|
@ -1,4 +1,6 @@
|
||||||
# These are supported funding model platforms
|
---
|
||||||
|
# Feel free to add yourself if you maintain this repo
|
||||||
|
# or participate in a way that you have the feeling that you belong there ;-)
|
||||||
|
|
||||||
github: [do1jlr]
|
github: [do1jlr]
|
||||||
liberapay: L3D
|
liberapay: L3D
|
||||||
|
|
12
.github/workflows/ansible-archlinux-latest.yml
vendored
12
.github/workflows/ansible-archlinux-latest.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check archlinux:latest
|
name: Ansible check archlinux:latest
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with archlinux:latest
|
- name: ansible check with archlinux:latest
|
||||||
uses: roles-ansible/check-ansible-archlinux-latest-action@master
|
uses: roles-ansible/check-ansible-archlinux-latest-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-centos-centos7.yml
vendored
12
.github/workflows/ansible-centos-centos7.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check centos:centos7
|
name: Ansible check centos:centos7
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with ubuntu:centos7
|
- name: ansible check with ubuntu:centos7
|
||||||
uses: roles-ansible/check-ansible-centos-centos7-action@master
|
uses: roles-ansible/check-ansible-centos-centos7-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-centos-centos8.yml
vendored
12
.github/workflows/ansible-centos-centos8.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check centos:centos8
|
name: Ansible check centos:centos8
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with ubuntu:centos8
|
- name: ansible check with ubuntu:centos8
|
||||||
uses: roles-ansible/check-ansible-centos-centos8-action@master
|
uses: roles-ansible/check-ansible-centos-centos8-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-centos-latest.yml
vendored
12
.github/workflows/ansible-centos-latest.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check centos:latest
|
name: Ansible check centos:latest
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with ubuntu:latest
|
- name: ansible check with ubuntu:latest
|
||||||
uses: roles-ansible/check-ansible-centos-latest-action@master
|
uses: roles-ansible/check-ansible-centos-latest-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-debian-buster.yml
vendored
12
.github/workflows/ansible-debian-buster.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check debian:buster
|
name: Ansible check debian:buster
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with debian:buster
|
- name: ansible check with debian:buster
|
||||||
uses: roles-ansible/check-ansible-debian-buster-action@master
|
uses: roles-ansible/check-ansible-debian-buster-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-debian-latest.yml
vendored
12
.github/workflows/ansible-debian-latest.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check debian:latest
|
name: Ansible check debian:latest
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with debian:latest
|
- name: ansible check with debian:latest
|
||||||
uses: roles-ansible/check-ansible-debian-latest-action@master
|
uses: roles-ansible/check-ansible-debian-latest-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-debian-sid.yml
vendored
12
.github/workflows/ansible-debian-sid.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check debian:sid
|
name: Ansible check debian:sid
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with debian:sid
|
- name: ansible check with debian:sid
|
||||||
uses: roles-ansible/check-ansible-debian-sid-action@master
|
uses: roles-ansible/check-ansible-debian-sid-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-debian-stable.yml
vendored
12
.github/workflows/ansible-debian-stable.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check debian:stable
|
name: Ansible check debian:stable
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with debian:stable
|
- name: ansible check with debian:stable
|
||||||
uses: roles-ansible/check-ansible-debian-stable-action@master
|
uses: roles-ansible/check-ansible-debian-stable-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-debian-stretch.yml
vendored
12
.github/workflows/ansible-debian-stretch.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check debian:stretch
|
name: Ansible check debian:stretch
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with debian:stretch
|
- name: ansible check with debian:stretch
|
||||||
uses: roles-ansible/check-ansible-debian-stretch-action@master
|
uses: roles-ansible/check-ansible-debian-stretch-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-fedora-31.yml
vendored
12
.github/workflows/ansible-fedora-31.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check fedora:31
|
name: Ansible check fedora:31
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with fedora:31
|
- name: ansible check with fedora:31
|
||||||
uses: roles-ansible/check-ansible-fedora-31-action@master
|
uses: roles-ansible/check-ansible-fedora-31-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-fedora-32.yml
vendored
12
.github/workflows/ansible-fedora-32.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check fedora:32
|
name: Ansible check fedora:32
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with fedora:32
|
- name: ansible check with fedora:32
|
||||||
uses: roles-ansible/check-ansible-fedora-32-action@master
|
uses: roles-ansible/check-ansible-fedora-32-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-fedora-33.yml
vendored
12
.github/workflows/ansible-fedora-33.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check fedora:33
|
name: Ansible check fedora:33
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with fedora:33
|
- name: ansible check with fedora:33
|
||||||
uses: roles-ansible/check-ansible-fedora-33-action@master
|
uses: roles-ansible/check-ansible-fedora-33-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-fedora-latest.yml
vendored
12
.github/workflows/ansible-fedora-latest.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check fedora:latest
|
name: Ansible check fedora:latest
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with fedora:latest
|
- name: ansible check with fedora:latest
|
||||||
uses: roles-ansible/check-ansible-fedora-latest-action@master
|
uses: roles-ansible/check-ansible-fedora-latest-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
20
.github/workflows/ansible-linting-check.yml
vendored
20
.github/workflows/ansible-linting-check.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible Lint check
|
name: Ansible Lint check
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,13 +10,13 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Lint Ansible Playbook
|
- name: Lint Ansible Playbook
|
||||||
uses: ansible/ansible-lint-action@master
|
uses: ansible/ansible-lint-action@master
|
||||||
with:
|
with:
|
||||||
targets: "."
|
targets: "."
|
||||||
# [required]
|
# [required]
|
||||||
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
|
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
|
||||||
args: ""
|
args: ""
|
||||||
# [optional]
|
# [optional]
|
||||||
|
|
12
.github/workflows/ansible-ubuntu-bionic.yml
vendored
12
.github/workflows/ansible-ubuntu-bionic.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check ubuntu:bionic
|
name: Ansible check ubuntu:bionic
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with ubuntu:bionic
|
- name: ansible check with ubuntu:bionic
|
||||||
uses: roles-ansible/check-ansible-ubuntu-bionic-action@master
|
uses: roles-ansible/check-ansible-ubuntu-bionic-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-ubuntu-latest.yml
vendored
12
.github/workflows/ansible-ubuntu-latest.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check ubuntu:latest
|
name: Ansible check ubuntu:latest
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with ubuntu:latest
|
- name: ansible check with ubuntu:latest
|
||||||
uses: roles-ansible/check-ansible-ubuntu-latest-action@master
|
uses: roles-ansible/check-ansible-ubuntu-latest-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
12
.github/workflows/ansible-ubuntu-trusty.yml
vendored
12
.github/workflows/ansible-ubuntu-trusty.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: Ansible check ubuntu:trusty
|
name: Ansible check ubuntu:trusty
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -8,9 +10,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: ansible check with ubuntu:trusty
|
- name: ansible check with ubuntu:trusty
|
||||||
uses: roles-ansible/check-ansible-ubuntu-trusty-action@master
|
uses: roles-ansible/check-ansible-ubuntu-trusty-action@master
|
||||||
with:
|
with:
|
||||||
targets: "./"
|
targets: "./"
|
||||||
|
|
22
.github/workflows/yamllint.yaml
vendored
Normal file
22
.github/workflows/yamllint.yaml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
name: 'Yamllint GitHub Actions'
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
yamllint:
|
||||||
|
name: 'Yamllint'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 'Checkout'
|
||||||
|
uses: actions/checkout@master
|
||||||
|
- name: 'Yamllint'
|
||||||
|
uses: karancode/yamllint-github-action@master
|
||||||
|
with:
|
||||||
|
yamllint_file_or_dir: '.'
|
||||||
|
yamllint_config_filepath: './.yamllint'
|
||||||
|
yamllint_strict: false
|
||||||
|
yamllint_comment: true
|
||||||
|
# env:
|
||||||
|
# GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }
|
27
.travis.yml
27
.travis.yml
|
@ -1,27 +0,0 @@
|
||||||
---
|
|
||||||
# OS Details
|
|
||||||
os: linux
|
|
||||||
language: python
|
|
||||||
python: '3.8'
|
|
||||||
|
|
||||||
cache:
|
|
||||||
pip: true
|
|
||||||
|
|
||||||
# Install ansible and ansible-lint
|
|
||||||
install:
|
|
||||||
- pip install ansible
|
|
||||||
- pip install ansible-lint
|
|
||||||
|
|
||||||
# more advanced testing is currently handled with
|
|
||||||
# github actions. The gh-actions for our test are there:
|
|
||||||
# https://github.com/roles-ansible and are tagged
|
|
||||||
# with 'github-actions' --> https://github.com/search?q=topic%3Agithub-actions+org%3Aroles-ansible&type=Repositories
|
|
||||||
script:
|
|
||||||
- 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/roles-ansible/ansible_role_base/actions\n\n\n\n\n\n"
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
on_success: never
|
|
||||||
on_failure: always
|
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
|
8
.yamllint
Normal file
8
.yamllint
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
# 150 chars should be enough, but don't fail if a line is longer
|
||||||
|
line-length:
|
||||||
|
max: 150
|
||||||
|
level: warning
|
|
@ -9,7 +9,7 @@
|
||||||
- ansible_distribution != 'CentOS'
|
- ansible_distribution != 'CentOS'
|
||||||
- ansible_distribution != 'RedHat'
|
- ansible_distribution != 'RedHat'
|
||||||
- ansible_distribution != 'Archlinux'
|
- ansible_distribution != 'Archlinux'
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
||||||
- name: vim is our editor
|
- name: vim is our editor
|
||||||
become: true
|
become: true
|
||||||
|
@ -21,4 +21,4 @@
|
||||||
- ansible_distribution == 'CentOS'
|
- ansible_distribution == 'CentOS'
|
||||||
- ansible_distribution == 'RedHat'
|
- ansible_distribution == 'RedHat'
|
||||||
- ansible_distribution == 'Archlinux'
|
- ansible_distribution == 'Archlinux'
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
---
|
---
|
||||||
- name: install keychain to support ssh agent
|
- name: install keychain to support ssh agent
|
||||||
become: yes
|
become: true
|
||||||
package:
|
package:
|
||||||
name: keychain
|
name: keychain
|
||||||
state: "{{ base__package_state }}"
|
state: "{{ base__package_state }}"
|
||||||
when:
|
when:
|
||||||
- ansible_os_family != 'RedHat'
|
- ansible_os_family != 'RedHat'
|
||||||
|
|
||||||
- name: install keychain on centos
|
- name: install keychain on centos
|
||||||
become: yes
|
become: true
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- "{{ _base__keychain_rpm }}"
|
- "{{ _base__keychain_rpm }}"
|
||||||
- libselinux-python
|
- libselinux-python
|
||||||
state: "{{ base__package_state }}"
|
state: "{{ base__package_state }}"
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == 'RedHat' and ansible_distribution_version | float <= 7
|
- ansible_os_family == 'RedHat' and ansible_distribution_version | float <= 7
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
---
|
---
|
||||||
- name: Print OS Infos
|
- name: Print OS Infos
|
||||||
debug:
|
debug:
|
||||||
msg: |
|
msg: |
|
||||||
ansible_os_family = '{{ ansible_os_family }}'
|
ansible_os_family = '{{ ansible_os_family }}'
|
||||||
ansible_distribution = '{{ ansible_distribution }}'
|
ansible_distribution = '{{ ansible_distribution }}'
|
||||||
ansible_distribution_version = '{{ ansible_distribution_version }}'
|
ansible_distribution_version = '{{ ansible_distribution_version }}'
|
||||||
ansible_distribution_release = '{{ ansible_distribution_release }}'
|
ansible_distribution_release = '{{ ansible_distribution_release }}'
|
||||||
ansible_machine = '{{ ansible_machine }}'
|
ansible_machine = '{{ ansible_machine }}'
|
||||||
|
|
||||||
inventory_hostname = '{{ inventory_hostname }}'
|
inventory_hostname = '{{ inventory_hostname }}'
|
||||||
ansible_hostname = '{{ ansible_hostname }}'
|
ansible_hostname = '{{ ansible_hostname }}'
|
||||||
ansible_fqdn = '{{ ansible_fqdn }}'
|
ansible_fqdn = '{{ ansible_fqdn }}'
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: update repo-cache for debian/ubuntu
|
- name: update repo-cache for debian/ubuntu
|
||||||
become: true
|
become: true
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
when:
|
when:
|
||||||
ansible_os_family == 'Debian'
|
ansible_os_family == 'Debian'
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
- name: update repo-cache for debian/ubuntu
|
- name: update repo-cache for debian/ubuntu
|
||||||
become: true
|
become: true
|
||||||
dnf:
|
dnf:
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == 'RedHat' and ansible_distribution_version | float >= 8
|
- ansible_os_family == 'RedHat' and ansible_distribution_version | float >= 8
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: update repo-cache for Debian/Ubuntu
|
- name: update repo-cache for Debian/Ubuntu
|
||||||
become: true
|
become: true
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
when:
|
when:
|
||||||
ansible_os_family == 'Debian'
|
ansible_os_family == 'Debian'
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
src: "/etc/.ansible-version/{{ playbook_version_path }}"
|
src: "/etc/.ansible-version/{{ playbook_version_path }}"
|
||||||
register: playbook_version
|
register: playbook_version
|
||||||
when: submodules_versioncheck|bool
|
when: submodules_versioncheck|bool
|
||||||
ignore_errors: yes
|
ignore_errors: true
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Print remote role version
|
- name: Print remote role version
|
||||||
|
|
|
@ -60,5 +60,5 @@ base__linux_packages:
|
||||||
- youtube-dl
|
- youtube-dl
|
||||||
- bzip2
|
- bzip2
|
||||||
|
|
||||||
playbook_version_number: 9005 # should be over ninethousand
|
playbook_version_number: 9005 # should be over ninethousand
|
||||||
playbook_version_path: 'base-packages_roles-ansible_github.version'
|
playbook_version_path: 'base-packages_roles-ansible_github.version'
|
||||||
|
|
Loading…
Reference in a new issue