New stuff.
This commit is contained in:
parent
ea83f6a426
commit
4f792f71eb
|
|
@ -1,4 +1,5 @@
|
||||||
id_rsa
|
id_rsa
|
||||||
|
roles/*
|
||||||
!roles/requirements.yml
|
!roles/requirements.yml
|
||||||
files/ssh_keys
|
files/ssh_keys
|
||||||
.vagrant
|
.vagrant
|
||||||
|
|
|
||||||
|
|
@ -385,3 +385,139 @@ git_repositories:
|
||||||
dest: ansible-role-zabbix_server
|
dest: ansible-role-zabbix_server
|
||||||
- repo: ssh://git@github.com/robertdebock/ansible-role-zabbix_web.git
|
- repo: ssh://git@github.com/robertdebock/ansible-role-zabbix_web.git
|
||||||
dest: ansible-role-zabbix_web
|
dest: ansible-role-zabbix_web
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-collection-roles.git
|
||||||
|
dest: ansible-collection-roles
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-collection-rundeck.git
|
||||||
|
dest: ansible-collection-rundeck
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-generator.git
|
||||||
|
dest: ansible-generator
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-integration.git
|
||||||
|
dest: ansible-integration
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-bios_update.git
|
||||||
|
dest: ansible-playbook-bios_update
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-cloudtop.git
|
||||||
|
dest: ansible-playbook-cloudtop
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-gitlab_runner.git
|
||||||
|
dest: ansible-playbook-gitlab_runner
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-haproxy.git
|
||||||
|
dest: ansible-playbook-haproxy
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-jitsi.git
|
||||||
|
dest: ansible-playbook-jitsi
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-keepalived.git
|
||||||
|
dest: ansible-playbook-keepalived
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-libvirt.git
|
||||||
|
dest: ansible-playbook-libvirt
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-mylucie.git
|
||||||
|
dest: ansible-playbook-mylucie
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-nextcloud.git
|
||||||
|
dest: ansible-playbook-nextcloud
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-nomad.git
|
||||||
|
dest: ansible-playbook-nomad
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-rancher.git
|
||||||
|
dest: ansible-playbook-rancher
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-saltstack.git
|
||||||
|
dest: ansible-playbook-saltstack
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-terraform.git
|
||||||
|
dest: ansible-playbook-terraform
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-tester.git
|
||||||
|
dest: ansible-playbook-tester
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-vault.git
|
||||||
|
dest: ansible-playbook-vault
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-playbook-zabbix.git
|
||||||
|
dest: ansible-playbook-zabbix
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-probe.git
|
||||||
|
dest: ansible-probe
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-amazonlinux-systemd.git
|
||||||
|
dest: docker-amazonlinux-systemd
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-archlinux-systemd.git
|
||||||
|
dest: docker-archlinux-systemd
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-centos-openssh.git
|
||||||
|
dest: docker-centos-openssh
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-centos-systemd.git
|
||||||
|
dest: docker-centos-systemd
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-cntlm.git
|
||||||
|
dest: docker-cntlm
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-debian-systemd.git
|
||||||
|
dest: docker-debian-systemd
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-fedora-systemd.git
|
||||||
|
dest: docker-fedora-systemd
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-github-action-galaxy.git
|
||||||
|
dest: docker-github-action-galaxy
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-github-action-graphviz.git
|
||||||
|
dest: docker-github-action-graphviz
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-github-action-molecule.git
|
||||||
|
dest: docker-github-action-molecule
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-github-action-rpmbuild.git
|
||||||
|
dest: docker-github-action-rpmbuild
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-opensuse-systemd.git
|
||||||
|
dest: docker-opensuse-systemd
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-oraclelinux-systemd.git
|
||||||
|
dest: docker-oraclelinux-systemd
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-redhat-systemd.git
|
||||||
|
dest: docker-redhat-systemd
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-revealmd.git
|
||||||
|
dest: docker-revealmd
|
||||||
|
- repo: ssh://git@github.com/robertdebock/docker-ubuntu-systemd.git
|
||||||
|
dest: docker-ubuntu-systemd
|
||||||
|
- repo: ssh://git@github.com/robertdebock/galaxy-action.git
|
||||||
|
dest: galaxy-action
|
||||||
|
- repo: ssh://git@github.com/robertdebock/graphviz-action.git
|
||||||
|
dest: graphviz-action
|
||||||
|
- repo: ssh://git@github.com/robertdebock/katacoda-scenarios.git
|
||||||
|
dest: katacoda-scenarios
|
||||||
|
- repo: ssh://git@github.com/robertdebock/learn-terraform.git
|
||||||
|
dest: learn-terraform
|
||||||
|
- repo: ssh://git@github.com/robertdebock/learn-terraform-azure.git
|
||||||
|
dest: learn-terraform-azure
|
||||||
|
- repo: ssh://git@github.com/robertdebock/mirror.git
|
||||||
|
dest: mirror
|
||||||
|
- repo: ssh://git@github.com/robertdebock/molecule-action.git
|
||||||
|
dest: molecule-action
|
||||||
|
- repo: ssh://git@github.com/robertdebock/move_to_collections.git
|
||||||
|
dest: move_to_collections
|
||||||
|
- repo: ssh://git@github.com/robertdebock/packer-centos.git
|
||||||
|
dest: packer-centos
|
||||||
|
- repo: ssh://git@github.com/robertdebock/packer-fedora.git
|
||||||
|
dest: packer-fedora
|
||||||
|
- repo: ssh://git@github.com/robertdebock/packer-opensuse.git
|
||||||
|
dest: packer-opensuse
|
||||||
|
- repo: ssh://git@github.com/robertdebock/pre-commit.git
|
||||||
|
dest: pre-commit
|
||||||
|
- repo: ssh://git@github.com/robertdebock/presentations.git
|
||||||
|
dest: presentations
|
||||||
|
- repo: ssh://git@github.com/robertdebock/rpmbuild-action.git
|
||||||
|
dest: rpmbuild-action
|
||||||
|
- repo: ssh://git@github.com/robertdebock/ansible-role-skeleton.git
|
||||||
|
dest: skeleton
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-action.git
|
||||||
|
dest: terraform-action
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-aws-vpc-bootstrap.git
|
||||||
|
dest: terraform-aws-vpc-bootstrap
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-azurerm-azurerm_network_interface.git
|
||||||
|
dest: terraform-azurerm-azurerm_network_interface
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-azurerm-azurerm_network_security_group.git
|
||||||
|
dest: terraform-azurerm-azurerm_network_security_group
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-azurerm-azurerm_network_security_rule.git
|
||||||
|
dest: terraform-azurerm-azurerm_network_security_rule
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-azurerm-azurerm_public_ip.git
|
||||||
|
dest: terraform-azurerm-azurerm_public_ip
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-azurerm-azurerm_resource_group.git
|
||||||
|
dest: terraform-azurerm-azurerm_resource_group
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-azurerm-azurerm_subnet.git
|
||||||
|
dest: terraform-azurerm-azurerm_subnet
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-azurerm-azurerm_virtual_network.git
|
||||||
|
dest: terraform-azurerm-azurerm_virtual_network
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-cloudflare-record.git
|
||||||
|
dest: terraform-cloudflare-record
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-demo.git
|
||||||
|
dest: terraform-demo
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-digitalocean-droplet.git
|
||||||
|
dest: terraform-digitalocean-droplet
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-digitalocean-ssh_key.git
|
||||||
|
dest: terraform-digitalocean-ssh_key
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-digitalocean-vpc.git
|
||||||
|
dest: terraform-digitalocean-vpc
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terraform-use-case-azure-loadbalanced-service.git
|
||||||
|
dest: terraform-use-case-azure-loadbalanced-service
|
||||||
|
- repo: ssh://git@github.com/robertdebock/terragrunt-demo.git
|
||||||
|
dest: terragrunt-demo
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,68 @@
|
||||||
|
ansible-collection-roles
|
||||||
|
ansible-collection-rundeck
|
||||||
|
ansible-generator
|
||||||
|
ansible-integration
|
||||||
|
ansible-playbook-bios_update
|
||||||
|
ansible-playbook-cloudtop
|
||||||
|
ansible-playbook-gitlab_runner
|
||||||
|
ansible-playbook-haproxy
|
||||||
|
ansible-playbook-jitsi
|
||||||
|
ansible-playbook-keepalived
|
||||||
|
ansible-playbook-libvirt
|
||||||
|
ansible-playbook-mylucie
|
||||||
|
ansible-playbook-nextcloud
|
||||||
|
ansible-playbook-nomad
|
||||||
|
ansible-playbook-rancher
|
||||||
|
ansible-playbook-saltstack
|
||||||
|
ansible-playbook-terraform
|
||||||
|
ansible-playbook-tester
|
||||||
|
ansible-playbook-vault
|
||||||
|
ansible-playbook-zabbix
|
||||||
|
ansible-probe
|
||||||
|
docker-amazonlinux-systemd
|
||||||
|
docker-archlinux-systemd
|
||||||
|
docker-centos-openssh
|
||||||
|
docker-centos-systemd
|
||||||
|
docker-cntlm
|
||||||
|
docker-debian-systemd
|
||||||
|
docker-fedora-systemd
|
||||||
|
docker-github-action-galaxy
|
||||||
|
docker-github-action-graphviz
|
||||||
|
docker-github-action-molecule
|
||||||
|
docker-github-action-rpmbuild
|
||||||
|
docker-opensuse-systemd
|
||||||
|
docker-oraclelinux-systemd
|
||||||
|
docker-redhat-systemd
|
||||||
|
docker-revealmd
|
||||||
|
docker-ubuntu-systemd
|
||||||
|
galaxy-action
|
||||||
|
graphviz-action
|
||||||
|
katacoda-scenarios
|
||||||
|
learn-terraform
|
||||||
|
learn-terraform-azure
|
||||||
|
mirror
|
||||||
|
molecule-action
|
||||||
|
move_to_collections
|
||||||
|
packer-centos
|
||||||
|
packer-fedora
|
||||||
|
packer-opensuse
|
||||||
|
pre-commit
|
||||||
|
presentations
|
||||||
|
rpmbuild-action
|
||||||
|
ansible-role-skeleton
|
||||||
|
terraform-action
|
||||||
|
terraform-aws-vpc-bootstrap
|
||||||
|
terraform-azurerm-azurerm_network_interface
|
||||||
|
terraform-azurerm-azurerm_network_security_group
|
||||||
|
terraform-azurerm-azurerm_network_security_rule
|
||||||
|
terraform-azurerm-azurerm_public_ip
|
||||||
|
terraform-azurerm-azurerm_resource_group
|
||||||
|
terraform-azurerm-azurerm_subnet
|
||||||
|
terraform-azurerm-azurerm_virtual_network
|
||||||
|
terraform-cloudflare-record
|
||||||
|
terraform-demo
|
||||||
|
terraform-digitalocean-droplet
|
||||||
|
terraform-digitalocean-ssh_key
|
||||||
|
terraform-digitalocean-vpc
|
||||||
|
terraform-use-case-azure-loadbalanced-service
|
||||||
|
terragrunt-demo
|
||||||
|
|
@ -4,5 +4,9 @@
|
||||||
exclude_paths:
|
exclude_paths:
|
||||||
- ./meta/exception.yml
|
- ./meta/exception.yml
|
||||||
- ./meta/preferences.yml
|
- ./meta/preferences.yml
|
||||||
|
- ./molecule/default/prepare.yml
|
||||||
|
- ./molecule/default/converge.yml
|
||||||
- ./molecule/default/verify.yml
|
- ./molecule/default/verify.yml
|
||||||
|
- ./molecule/default/collections.yml
|
||||||
- ./.tox
|
- ./.tox
|
||||||
|
- ./.cache
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
github: robertdebock
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
name: Pull request
|
|
||||||
about: Describe the proposed change
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Describe the change**
|
|
||||||
A clear and concise description of what the pull request is.
|
|
||||||
|
|
||||||
**Testing**
|
|
||||||
In case a feature was added, how were tests performed?
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
#
|
|
||||||
# Ansible managed
|
|
||||||
#
|
|
||||||
repository:
|
|
||||||
description: Install and configure ansible on your system.
|
|
||||||
homepage: https://robertdebock.nl/
|
|
||||||
|
|
@ -5,3 +5,4 @@
|
||||||
repository:
|
repository:
|
||||||
description: Install and configure ansible on your system.
|
description: Install and configure ansible on your system.
|
||||||
homepage: https://robertdebock.nl/
|
homepage: https://robertdebock.nl/
|
||||||
|
topics: ansible, ansible, molecule, tox, playbook, hacktoberfest
|
||||||
|
|
|
||||||
|
|
@ -6,17 +6,13 @@
|
||||||
name: Release to Ansible Galaxy
|
name: Release to Ansible Galaxy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
tags:
|
types: [created, edited, published, released]
|
||||||
- '*'
|
|
||||||
schedule:
|
|
||||||
- cron: '1 1 1 * *'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: galaxy
|
- name: galaxy
|
||||||
uses: robertdebock/galaxy-action@1.0.1
|
uses: robertdebock/galaxy-action@1.1.0
|
||||||
with:
|
with:
|
||||||
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
||||||
|
|
|
||||||
|
|
@ -15,30 +15,26 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: "${{ github.repository }}"
|
path: "${{ github.repository }}"
|
||||||
- name: molecule
|
- name: molecule
|
||||||
uses: robertdebock/molecule-action@2.6.2
|
uses: robertdebock/molecule-action@2.6.16
|
||||||
with:
|
with:
|
||||||
command: lint
|
command: lint
|
||||||
test:
|
test:
|
||||||
needs:
|
needs:
|
||||||
- lint
|
- lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
- image: "alpine"
|
- image: "alpine"
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
- image: "alpine"
|
|
||||||
tag: "edge"
|
|
||||||
- image: "centos"
|
|
||||||
tag: "7"
|
|
||||||
- image: "centos"
|
- image: "centos"
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
- image: "debian"
|
- image: "debian"
|
||||||
|
|
@ -46,7 +42,7 @@ jobs:
|
||||||
- image: "debian"
|
- image: "debian"
|
||||||
tag: "bullseye"
|
tag: "bullseye"
|
||||||
- image: "fedora"
|
- image: "fedora"
|
||||||
tag: "31"
|
tag: "32"
|
||||||
- image: "fedora"
|
- image: "fedora"
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
- image: "opensuse"
|
- image: "opensuse"
|
||||||
|
|
@ -55,8 +51,6 @@ jobs:
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
- image: "ubuntu"
|
- image: "ubuntu"
|
||||||
tag: "bionic"
|
tag: "bionic"
|
||||||
- image: "ubuntu"
|
|
||||||
tag: "xenial"
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
@ -67,10 +61,7 @@ jobs:
|
||||||
- name: parse apparmor for mysql
|
- name: parse apparmor for mysql
|
||||||
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
||||||
- name: molecule
|
- name: molecule
|
||||||
uses: robertdebock/molecule-action@2.6.2
|
uses: robertdebock/molecule-action@2.6.16
|
||||||
with:
|
with:
|
||||||
image: ${{ matrix.config.image }}
|
image: ${{ matrix.config.image }}
|
||||||
tag: ${{ matrix.config.tag }}
|
tag: ${{ matrix.config.tag }}
|
||||||
options: "--parallel all"
|
|
||||||
env:
|
|
||||||
TOX_PARALLEL_NO_SPINNER: 1
|
|
||||||
|
|
|
||||||
|
|
@ -2,3 +2,4 @@
|
||||||
*.log
|
*.log
|
||||||
*.swp
|
*.swp
|
||||||
.tox
|
.tox
|
||||||
|
.cache
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
.molecule
|
|
||||||
*.log
|
|
||||||
*.swp
|
|
||||||
.tox
|
|
||||||
|
|
@ -8,42 +8,23 @@ os: linux
|
||||||
dist: xenial
|
dist: xenial
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- "3.8"
|
- "3.9"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
namespace="robertdebock"
|
|
||||||
jobs:
|
|
||||||
- image="alpine" tag="latest"
|
|
||||||
- image="alpine" tag="edge"
|
|
||||||
- image="centos" tag="7"
|
|
||||||
- image="centos" tag="latest"
|
|
||||||
- image="debian" tag="latest"
|
|
||||||
- image="debian" tag="bullseye"
|
|
||||||
- image="fedora" tag="31"
|
|
||||||
- image="fedora" tag="latest"
|
|
||||||
- image="opensuse" tag="latest"
|
|
||||||
- image="ubuntu" tag="latest"
|
|
||||||
- image="ubuntu" tag="bionic"
|
|
||||||
- image="ubuntu" tag="xenial"
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- pip
|
- pip
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip install tox
|
- pip install yamllint
|
||||||
|
- pip install ansible-lint
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- function retry { counter=0 ; until "$@" ; do exit=$? ; counter=$(($counter + 1)) ; if [ $counter -ge 3 ] ; then return $exit ; fi ; done ; return 0; } ; retry tox --parallel all
|
- yamllint .
|
||||||
|
- ansible-lint
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
slack:
|
|
||||||
secure: "TrlwhHG0+mcoQ1GI0ormhAX3DN6hR60B4dlVlkwRUqnJYJGh9BFuJChNegVAmidXSbpNB5KsvVvlXQlB3OypQniBhrS3P9mn2wd4HOrMDWDjZLPrXCZphDUHC1uN/1vqnsmgVeB6tyJkwN9hj6pYM86FqKXW0MP3Bt2MkFj3pK9VN8eyFeNXDMzfDRv/rayUoYAwyOyNVqKVQWqyEF4MdZ2VQAU/La9QXzeLUBmP+53JXrTeljavWx4DvYtDdbZDLYT/rmdCxkE7mkBrOSAd9wB1AjGU2sH0dxMHAmDtfiKZTwFxgToFD1K95c21SJXMOvIQXw0quQmgvuJtHuR3z6PyTmJ5gbezkRmiMcJOqlGiRYsVXhyr+qB43e0HpaSAEOk/CsdCefIwUyfUJuVV2qjl2w/L4oyLpLPJJRi7eJrDOrZbaTSvi/RQHGLW+it4gBQS+sxfUvwi6r5gwm4m2EHTd/IcvNcOsvQPL7VEVPjZYhq3BNU9CpJy8suMrLPWUOOYFvyJ90vVAAjzyYHOXLv3rqtsQqA6W0aO33om8CoNINOj/gi3TFdJY+GKr59y08ZUapM6/OYZAuOFgZPb/AsFprzhapciOP15cHu3octzpyW1GlJH0SGN3qGdvrm7SaChOw0+Fbh1fbnihnGS7tz2qFvze2XPNA5tk/va3K4="
|
|
||||||
on_success: change
|
|
||||||
template: "%{result}: %{repository_slug}@%{branch}, build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>)"
|
|
||||||
email: false
|
email: false
|
||||||
|
|
|
||||||
|
|
@ -13,3 +13,4 @@ rules:
|
||||||
|
|
||||||
ignore: |
|
ignore: |
|
||||||
.tox/
|
.tox/
|
||||||
|
.cache/
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@
|
||||||
same "printed page" as the copyright notice for easier
|
same "printed page" as the copyright notice for easier
|
||||||
identification within third-party archives.
|
identification within third-party archives.
|
||||||
|
|
||||||
Copyright 2020 Robert de Bock (robert@meinit.nl)
|
Copyright 2021 Robert de Bock (robert@meinit.nl)
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
Install and configure ansible on your system.
|
Install and configure ansible on your system.
|
||||||
|
|
||||||
|Travis|GitHub|Quality|Downloads|Version|
|
|GitHub|GitLab|Quality|Downloads|Version|
|
||||||
|------|------|-------|---------|-------|
|
|------|------|-------|---------|-------|
|
||||||
|[](https://travis-ci.com/robertdebock/ansible-role-ansible)|[](https://github.com/robertdebock/ansible-role-ansible/actions)|[](https://galaxy.ansible.com/robertdebock/ansible)|[](https://galaxy.ansible.com/robertdebock/ansible)|[](https://github.com/robertdebock/ansible-role-ansible/releases/)|
|
|[](https://github.com/robertdebock/ansible-role-ansible/actions)|[](https://gitlab.com/robertdebock/ansible-role-ansible)|[](https://galaxy.ansible.com/robertdebock/ansible)|[](https://galaxy.ansible.com/robertdebock/ansible)|[](https://github.com/robertdebock/ansible-role-ansible/releases/)|
|
||||||
|
|
||||||
## [Example Playbook](#example-playbook)
|
## [Example Playbook](#example-playbook)
|
||||||
|
|
||||||
|
|
@ -20,7 +20,7 @@ This example is taken from `molecule/resources/converge.yml` and is tested on ea
|
||||||
- role: robertdebock.ansible
|
- role: robertdebock.ansible
|
||||||
```
|
```
|
||||||
|
|
||||||
The machine may need to be prepared using `molecule/resources/prepare.yml`:
|
The machine needs to be prepared in CI this is done using `molecule/resources/prepare.yml`:
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
|
|
@ -35,21 +35,6 @@ The machine may need to be prepared using `molecule/resources/prepare.yml`:
|
||||||
- role: robertdebock.python_pip
|
- role: robertdebock.python_pip
|
||||||
```
|
```
|
||||||
|
|
||||||
For verification `molecule/resources/verify.yml` runs after the role has been applied.
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
- name: Verify
|
|
||||||
hosts: all
|
|
||||||
become: no
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: run ansible
|
|
||||||
shell: ansible --version > ansible.version
|
|
||||||
args:
|
|
||||||
creates: ansible.version
|
|
||||||
```
|
|
||||||
|
|
||||||
Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.
|
Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.
|
||||||
|
|
||||||
## [Role Variables](#role-variables)
|
## [Role Variables](#role-variables)
|
||||||
|
|
@ -74,26 +59,25 @@ ansible_configuration:
|
||||||
|
|
||||||
## [Requirements](#requirements)
|
## [Requirements](#requirements)
|
||||||
|
|
||||||
- Access to a repository containing packages, likely on the internet.
|
- pip packages listed in [requirements.txt](https://github.com/robertdebock/ansible-role-ansible/blob/master/requirements.txt).
|
||||||
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
|
|
||||||
|
|
||||||
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:
|
## [Status of requirements](#status-of-requirements)
|
||||||
|
|
||||||
```yaml
|
The following roles are used to prepare a system. You may choose to prepare your system in another way, I have tested these roles as well.
|
||||||
---
|
|
||||||
- robertdebock.bootstrap
|
|
||||||
- robertdebock.buildtools
|
|
||||||
- robertdebock.epel
|
|
||||||
- robertdebock.python_pip
|
|
||||||
|
|
||||||
```
|
| Requirement | GitHub | GitLab |
|
||||||
|
|-------------|--------|--------|
|
||||||
|
| [robertdebock.bootstrap](https://galaxy.ansible.com/robertdebock/bootstrap) | [](https://github.com/robertdebock/ansible-role-bootstrap/actions) | [](https://gitlab.com/robertdebock/ansible-role-bootstrap)
|
||||||
|
| [robertdebock.buildtools](https://galaxy.ansible.com/robertdebock/buildtools) | [](https://github.com/robertdebock/ansible-role-buildtools/actions) | [](https://gitlab.com/robertdebock/ansible-role-buildtools)
|
||||||
|
| [robertdebock.epel](https://galaxy.ansible.com/robertdebock/epel) | [](https://github.com/robertdebock/ansible-role-epel/actions) | [](https://gitlab.com/robertdebock/ansible-role-epel)
|
||||||
|
| [robertdebock.python_pip](https://galaxy.ansible.com/robertdebock/python_pip) | [](https://github.com/robertdebock/ansible-role-python_pip/actions) | [](https://gitlab.com/robertdebock/ansible-role-python_pip)
|
||||||
|
|
||||||
## [Context](#context)
|
## [Context](#context)
|
||||||
|
|
||||||
This role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.
|
This role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.
|
||||||
|
|
||||||
Here is an overview of related roles:
|
Here is an overview of related roles:
|
||||||

|

|
||||||
|
|
||||||
## [Compatibility](#compatibility)
|
## [Compatibility](#compatibility)
|
||||||
|
|
||||||
|
|
@ -102,15 +86,15 @@ This role has been tested on these [container images](https://hub.docker.com/u/r
|
||||||
|container|tags|
|
|container|tags|
|
||||||
|---------|----|
|
|---------|----|
|
||||||
|alpine|all|
|
|alpine|all|
|
||||||
|el|7, 8|
|
|el|8|
|
||||||
|debian|buster, bullseye|
|
|debian|buster, bullseye|
|
||||||
|fedora|31, 32|
|
|fedora|all|
|
||||||
|opensuse|all|
|
|opensuse|all|
|
||||||
|ubuntu|focal, bionic, xenial|
|
|ubuntu|focal, bionic|
|
||||||
|
|
||||||
The minimum version of Ansible required is 2.8 but tests have been done to:
|
The minimum version of Ansible required is 2.10, tests have been done to:
|
||||||
|
|
||||||
- The previous version, on version lower.
|
- The previous version.
|
||||||
- The current version.
|
- The current version.
|
||||||
- The development version.
|
- The development version.
|
||||||
|
|
||||||
|
|
@ -123,40 +107,8 @@ Some variarations of the build matrix do not work. These are the variations and
|
||||||
| amazonlinux:1 | No package matching 'python3-pip' |
|
| amazonlinux:1 | No package matching 'python3-pip' |
|
||||||
|
|
||||||
|
|
||||||
## [Testing](#testing)
|
|
||||||
|
|
||||||
[Unit tests](https://travis-ci.com/robertdebock/ansible-role-ansible) are done on every commit, pull request, release and periodically.
|
|
||||||
|
|
||||||
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-ansible/issues)
|
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-ansible/issues)
|
||||||
|
|
||||||
Testing is done using [Tox](https://tox.readthedocs.io/en/latest/) and [Molecule](https://github.com/ansible/molecule):
|
|
||||||
|
|
||||||
[Tox](https://tox.readthedocs.io/en/latest/) tests multiple ansible versions.
|
|
||||||
[Molecule](https://github.com/ansible/molecule) tests multiple distributions.
|
|
||||||
|
|
||||||
To test using the defaults (any installed ansible version, namespace: `robertdebock`, image: `fedora`, tag: `latest`):
|
|
||||||
|
|
||||||
```
|
|
||||||
molecule test
|
|
||||||
|
|
||||||
# Or select a specific image:
|
|
||||||
image=ubuntu molecule test
|
|
||||||
# Or select a specific image and a specific tag:
|
|
||||||
image="debian" tag="stable" tox
|
|
||||||
```
|
|
||||||
|
|
||||||
Or you can test multiple versions of Ansible, and select images:
|
|
||||||
Tox allows multiple versions of Ansible to be tested. To run the default (namespace: `robertdebock`, image: `fedora`, tag: `latest`) tests:
|
|
||||||
|
|
||||||
```
|
|
||||||
tox
|
|
||||||
|
|
||||||
# To run CentOS (namespace: `robertdebock`, tag: `latest`)
|
|
||||||
image="centos" tox
|
|
||||||
# Or customize more:
|
|
||||||
image="debian" tag="stable" tox
|
|
||||||
```
|
|
||||||
|
|
||||||
## [License](#license)
|
## [License](#license)
|
||||||
|
|
||||||
Apache-2.0
|
Apache-2.0
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
install_date: Mon Sep 28 13:21:49 2020
|
|
||||||
version: 2.3.3
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
---
|
|
||||||
exceptions:
|
|
||||||
- variation: amazonlinux:1
|
|
||||||
reason: "No package matching 'python3-pip'"
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
tox_parallel: yes
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
install_date: Mon Sep 28 13:21:49 2020
|
install_date: Sun Mar 21 06:59:14 2021
|
||||||
version: 2.3.3
|
version: 3.0.2
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ galaxy_info:
|
||||||
description: Install and configure ansible on your system.
|
description: Install and configure ansible on your system.
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
company: none
|
company: none
|
||||||
min_ansible_version: 2.8
|
min_ansible_version: "2.10"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: Alpine
|
- name: Alpine
|
||||||
|
|
@ -13,7 +13,6 @@ galaxy_info:
|
||||||
- all
|
- all
|
||||||
- name: EL
|
- name: EL
|
||||||
versions:
|
versions:
|
||||||
- 7
|
|
||||||
- 8
|
- 8
|
||||||
- name: Debian
|
- name: Debian
|
||||||
versions:
|
versions:
|
||||||
|
|
@ -21,8 +20,7 @@ galaxy_info:
|
||||||
- bullseye
|
- bullseye
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
versions:
|
versions:
|
||||||
- 31
|
- all
|
||||||
- 32
|
|
||||||
- name: OpenSUSE
|
- name: OpenSUSE
|
||||||
versions:
|
versions:
|
||||||
- all
|
- all
|
||||||
|
|
@ -30,7 +28,6 @@ galaxy_info:
|
||||||
versions:
|
versions:
|
||||||
- focal
|
- focal
|
||||||
- bionic
|
- bionic
|
||||||
- xenial
|
|
||||||
|
|
||||||
galaxy_tags:
|
galaxy_tags:
|
||||||
- ansible
|
- ansible
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
---
|
|
||||||
- name: Converge
|
|
||||||
hosts: all
|
|
||||||
become: yes
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
roles:
|
|
||||||
- role: ansible-role-ansible
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
- name: Prepare
|
|
||||||
hosts: all
|
|
||||||
gather_facts: no
|
|
||||||
become: yes
|
|
||||||
|
|
||||||
roles:
|
|
||||||
- role: robertdebock.bootstrap
|
|
||||||
- role: robertdebock.epel
|
|
||||||
- role: robertdebock.buildtools
|
|
||||||
- role: robertdebock.python_pip
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
- name: Verify
|
|
||||||
hosts: all
|
|
||||||
become: no
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: run ansible
|
|
||||||
shell: ansible --version > ansible.version
|
|
||||||
args:
|
|
||||||
creates: ansible.version
|
|
||||||
|
|
@ -6,9 +6,11 @@ dependency:
|
||||||
name: galaxy
|
name: galaxy
|
||||||
options:
|
options:
|
||||||
role-file: requirements.yml
|
role-file: requirements.yml
|
||||||
|
requirements-file: requirements.yml
|
||||||
lint: |
|
lint: |
|
||||||
set -e
|
set -e
|
||||||
yamllint .
|
yamllint .
|
||||||
|
ansible-lint
|
||||||
driver:
|
driver:
|
||||||
name: docker
|
name: docker
|
||||||
platforms:
|
platforms:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
- robertdebock.bootstrap
|
|
||||||
- robertdebock.buildtools
|
|
||||||
- robertdebock.epel
|
|
||||||
- robertdebock.python_pip
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
---
|
---
|
||||||
- robertdebock.bootstrap
|
roles:
|
||||||
- robertdebock.buildtools
|
- name: robertdebock.bootstrap
|
||||||
- robertdebock.epel
|
- name: robertdebock.buildtools
|
||||||
- robertdebock.python_pip
|
- name: robertdebock.epel
|
||||||
|
- name: robertdebock.python_pip
|
||||||
|
collections:
|
||||||
|
- name: community.general
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,19 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: test if ansible_configuration is set correctly
|
- name: test if ansible_configuration is set correctly
|
||||||
assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- ansible_configuration | length > 0
|
|
||||||
- ansible_configuration is iterable
|
- ansible_configuration is iterable
|
||||||
quiet: yes
|
quiet: yes
|
||||||
when:
|
when:
|
||||||
- ansible_configuration is defined
|
- ansible_configuration is defined
|
||||||
|
|
||||||
- name: test if item in ansible_configuration is set correctly
|
- name: test if item in ansible_configuration is set correctly
|
||||||
assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- item.option is defined
|
- item.option is defined
|
||||||
- item.option | length > 0
|
- item.option is string
|
||||||
- item.value is defined
|
- item.value is defined
|
||||||
- item.value | length > 0
|
|
||||||
quiet: yes
|
quiet: yes
|
||||||
loop: "{{ ansible_configuration }}"
|
loop: "{{ ansible_configuration }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,31 @@
|
||||||
---
|
---
|
||||||
# tasks file for ansible
|
# tasks file for ansible
|
||||||
|
|
||||||
- name: include assert.yml
|
- name: include assert.yml
|
||||||
include_tasks: assert.yml
|
import_tasks: assert.yml
|
||||||
|
run_once: yes
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: install ansible
|
- name: install ansible
|
||||||
block:
|
block:
|
||||||
- name: install ansible package (allowed to fail)
|
- name: install ansible package (allowed to fail)
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: "{{ ansible_packages }}"
|
name: "{{ ansible_packages }}"
|
||||||
state: present
|
state: present
|
||||||
rescue:
|
rescue:
|
||||||
- name: install ansible pip
|
- name: install ansible pip
|
||||||
pip:
|
ansible.builtin.pip:
|
||||||
name: ansible
|
name: ansible
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: ensure the ansible directory exists
|
- name: ensure the ansible directory exists
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ ansible_configuration_directory }}"
|
path: "{{ ansible_configuration_directory }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
- name: mark configuration file as ansible managed
|
- name: mark configuration file as ansible managed
|
||||||
lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: "{{ ansible_configuration_directory }}/{{ ansible_configuration_file }}"
|
path: "{{ ansible_configuration_directory }}/{{ ansible_configuration_file }}"
|
||||||
create: yes
|
create: yes
|
||||||
insertbefore: BOF
|
insertbefore: BOF
|
||||||
|
|
@ -30,7 +33,7 @@
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
- name: configure ansible
|
- name: configure ansible
|
||||||
ini_file:
|
community.general.ini_file:
|
||||||
path: "{{ ansible_configuration_directory }}/{{ ansible_configuration_file }}"
|
path: "{{ ansible_configuration_directory }}/{{ ansible_configuration_file }}"
|
||||||
section: "{{ item.section | default('defaults') }}"
|
section: "{{ item.section | default('defaults') }}"
|
||||||
option: "{{ item.option }}"
|
option: "{{ item.option }}"
|
||||||
|
|
|
||||||
|
|
@ -2,25 +2,25 @@
|
||||||
# Ansible managed
|
# Ansible managed
|
||||||
#
|
#
|
||||||
[tox]
|
[tox]
|
||||||
minversion = 3.7
|
minversion = 3.21.4
|
||||||
# Disabled "next" because of:
|
# 2.11 has been disabled: couldn't resolve module/action 'docker_container'.
|
||||||
# https://github.com/ansible-community/molecule/issues/2626.
|
envlist = py{39}-ansible-{2.9,2.10}
|
||||||
# envlist = py{38}-ansible-{previous,current,next}
|
|
||||||
envlist = py{38}-ansible-{previous,current}
|
|
||||||
skipsdist = true
|
skipsdist = true
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
previous: ansible>=2.8, <2.9
|
2.9: ansible == 2.9.*
|
||||||
current: ansible>=2.9
|
2.10: ansible == 2.10.*
|
||||||
next: git+https://github.com/ansible/ansible.git@devel
|
2.11: git+https://github.com/ansible/ansible.git@devel
|
||||||
molecule[lint]>=3, <4
|
molecule[docker]
|
||||||
docker>=4.2, <4.3
|
docker == 4.*
|
||||||
|
ansible-lint == 5.*
|
||||||
commands = molecule test
|
commands = molecule test
|
||||||
setenv =
|
setenv =
|
||||||
TOX_ENVNAME={envname}
|
TOX_ENVNAME={envname}
|
||||||
MOLECULE_EPHEMERAL_DIRECTORY=/tmp/.molecule/{env:image:fedora}-{env:tag:latest}/{envname}
|
|
||||||
PY_COLORS=1
|
PY_COLORS=1
|
||||||
ANSIBLE_FORCE_COLOR=1
|
ANSIBLE_FORCE_COLOR=1
|
||||||
|
ANSIBLE_ROLES_PATH=../
|
||||||
|
|
||||||
passenv = namespace image tag
|
passenv = namespace image tag
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,9 @@
|
||||||
exclude_paths:
|
exclude_paths:
|
||||||
- ./meta/exception.yml
|
- ./meta/exception.yml
|
||||||
- ./meta/preferences.yml
|
- ./meta/preferences.yml
|
||||||
|
- ./molecule/default/prepare.yml
|
||||||
|
- ./molecule/default/converge.yml
|
||||||
- ./molecule/default/verify.yml
|
- ./molecule/default/verify.yml
|
||||||
|
- ./molecule/default/collections.yml
|
||||||
- ./.tox
|
- ./.tox
|
||||||
|
- ./.cache
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
github: robertdebock
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
name: Pull request
|
|
||||||
about: Describe the proposed change
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Describe the change**
|
|
||||||
A clear and concise description of what the pull request is.
|
|
||||||
|
|
||||||
**Testing**
|
|
||||||
In case a feature was added, how were tests performed?
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
#
|
|
||||||
# Ansible managed
|
|
||||||
#
|
|
||||||
repository:
|
|
||||||
description: Install ansible-lint on your system.
|
|
||||||
homepage: https://robertdebock.nl/
|
|
||||||
|
|
@ -5,3 +5,4 @@
|
||||||
repository:
|
repository:
|
||||||
description: Install ansible-lint on your system.
|
description: Install ansible-lint on your system.
|
||||||
homepage: https://robertdebock.nl/
|
homepage: https://robertdebock.nl/
|
||||||
|
topics: ansiblelint, ansible, lint, ansible, molecule, tox, playbook, hacktoberfest
|
||||||
|
|
|
||||||
|
|
@ -6,17 +6,13 @@
|
||||||
name: Release to Ansible Galaxy
|
name: Release to Ansible Galaxy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
tags:
|
types: [created, edited, published, released]
|
||||||
- '*'
|
|
||||||
schedule:
|
|
||||||
- cron: '1 1 1 * *'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: galaxy
|
- name: galaxy
|
||||||
uses: robertdebock/galaxy-action@1.0.1
|
uses: robertdebock/galaxy-action@1.1.0
|
||||||
with:
|
with:
|
||||||
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
||||||
|
|
|
||||||
|
|
@ -15,20 +15,20 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: "${{ github.repository }}"
|
path: "${{ github.repository }}"
|
||||||
- name: molecule
|
- name: molecule
|
||||||
uses: robertdebock/molecule-action@2.6.2
|
uses: robertdebock/molecule-action@2.6.16
|
||||||
with:
|
with:
|
||||||
command: lint
|
command: lint
|
||||||
test:
|
test:
|
||||||
needs:
|
needs:
|
||||||
- lint
|
- lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -40,15 +40,13 @@ jobs:
|
||||||
- image: "debian"
|
- image: "debian"
|
||||||
tag: "bullseye"
|
tag: "bullseye"
|
||||||
- image: "fedora"
|
- image: "fedora"
|
||||||
tag: "31"
|
tag: "32"
|
||||||
- image: "fedora"
|
- image: "fedora"
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
- image: "ubuntu"
|
- image: "ubuntu"
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
- image: "ubuntu"
|
- image: "ubuntu"
|
||||||
tag: "bionic"
|
tag: "bionic"
|
||||||
- image: "ubuntu"
|
|
||||||
tag: "xenial"
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
@ -59,10 +57,7 @@ jobs:
|
||||||
- name: parse apparmor for mysql
|
- name: parse apparmor for mysql
|
||||||
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
||||||
- name: molecule
|
- name: molecule
|
||||||
uses: robertdebock/molecule-action@2.6.2
|
uses: robertdebock/molecule-action@2.6.16
|
||||||
with:
|
with:
|
||||||
image: ${{ matrix.config.image }}
|
image: ${{ matrix.config.image }}
|
||||||
tag: ${{ matrix.config.tag }}
|
tag: ${{ matrix.config.tag }}
|
||||||
options: "--parallel all"
|
|
||||||
env:
|
|
||||||
TOX_PARALLEL_NO_SPINNER: 1
|
|
||||||
|
|
|
||||||
|
|
@ -2,3 +2,4 @@
|
||||||
*.log
|
*.log
|
||||||
*.swp
|
*.swp
|
||||||
.tox
|
.tox
|
||||||
|
.cache
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
.molecule
|
|
||||||
*.log
|
|
||||||
*.swp
|
|
||||||
.tox
|
|
||||||
|
|
@ -8,38 +8,23 @@ os: linux
|
||||||
dist: xenial
|
dist: xenial
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- "3.8"
|
- "3.9"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
namespace="robertdebock"
|
|
||||||
jobs:
|
|
||||||
- image="centos" tag="latest"
|
|
||||||
- image="debian" tag="latest"
|
|
||||||
- image="debian" tag="bullseye"
|
|
||||||
- image="fedora" tag="31"
|
|
||||||
- image="fedora" tag="latest"
|
|
||||||
- image="ubuntu" tag="latest"
|
|
||||||
- image="ubuntu" tag="bionic"
|
|
||||||
- image="ubuntu" tag="xenial"
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- pip
|
- pip
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip install tox
|
- pip install yamllint
|
||||||
|
- pip install ansible-lint
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- function retry { counter=0 ; until "$@" ; do exit=$? ; counter=$(($counter + 1)) ; if [ $counter -ge 3 ] ; then return $exit ; fi ; done ; return 0; } ; retry tox --parallel all
|
- yamllint .
|
||||||
|
- ansible-lint
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
slack:
|
|
||||||
secure: "FjNc+FnNGmc/0LZQl1KY1yB/yFL1AdcD/qlaqQXSxogbtvXP/UmP/lgCBXBLIGUfoyJY0xM/pNSYucijdAkqpAD9LBFlV1StBdzBXM2c5LIklzZFJtWVu5OeymItyZ8Nyz8aFlbv3Q7vApXNNNSF6TMCgysIq7ODbIcCx5+7JtxMJEUBlXe2Xggye0BAxd4IAdYRK72/Zsp5YNYIB3VbhdA9dAxLVj9oUU4z1I0W0WQEl6sS9L/vy8jOHNo/Qw7j4RksrPzGsGQK4bcRqHtC+QnU5p4WlQE4uSAs+x6ohwZg9qT3jZHkzF0TwCcwaigVDmrDrudFnfu7/ymU/YvF/8RV2Dcr8T4HjceFGpGy4GusXxJf3K0mDCL0ULfBI9Hu35xVXJ7ARqhi/DqUzvxnqQTr6v/NfnajqOEC7aSME7CR8QnvBml3JLAnMZTpJ+F98/rf21UZ6zRlfZwyRAQa1PX7kBaCXLuPJqmtL40eREryNqno9sFXgwJlvfgrsMR91nYLPwBaYxHVRqzLUZjYQEDAnozidzf4qhdXyhYDNFqLIhpYPlII4nf0qsufm3tQjarV0A8X/hySHD6xoZmYSH4r0nNJcXizENkK9ILgsw+F2LWHkZx81Bv9mZP3fKCZ7iY1Ruce5k+EAEIehVmlEfZte4OdrWRH5ABYvnqJ0b4="
|
|
||||||
on_success: change
|
|
||||||
template: "%{result}: %{repository_slug}@%{branch}, build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>)"
|
|
||||||
email: false
|
email: false
|
||||||
|
|
|
||||||
|
|
@ -13,3 +13,4 @@ rules:
|
||||||
|
|
||||||
ignore: |
|
ignore: |
|
||||||
.tox/
|
.tox/
|
||||||
|
.cache/
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@
|
||||||
same "printed page" as the copyright notice for easier
|
same "printed page" as the copyright notice for easier
|
||||||
identification within third-party archives.
|
identification within third-party archives.
|
||||||
|
|
||||||
Copyright 2020 Robert de Bock (robert@meinit.nl)
|
Copyright 2021 Robert de Bock (robert@meinit.nl)
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
Install ansible-lint on your system.
|
Install ansible-lint on your system.
|
||||||
|
|
||||||
|Travis|GitHub|Quality|Downloads|Version|
|
|GitHub|GitLab|Quality|Downloads|Version|
|
||||||
|------|------|-------|---------|-------|
|
|------|------|-------|---------|-------|
|
||||||
|[](https://travis-ci.com/robertdebock/ansible-role-ansible_lint)|[](https://github.com/robertdebock/ansible-role-ansible_lint/actions)|[](https://galaxy.ansible.com/robertdebock/ansible_lint)|[](https://galaxy.ansible.com/robertdebock/ansible_lint)|[](https://github.com/robertdebock/ansible-role-ansible_lint/releases/)|
|
|[](https://github.com/robertdebock/ansible-role-ansible_lint/actions)|[](https://gitlab.com/robertdebock/ansible-role-ansible_lint)|[](https://galaxy.ansible.com/robertdebock/ansible_lint)|[](https://galaxy.ansible.com/robertdebock/ansible_lint)|[](https://github.com/robertdebock/ansible-role-ansible_lint/releases/)|
|
||||||
|
|
||||||
## [Example Playbook](#example-playbook)
|
## [Example Playbook](#example-playbook)
|
||||||
|
|
||||||
|
|
@ -20,7 +20,7 @@ This example is taken from `molecule/resources/converge.yml` and is tested on ea
|
||||||
- role: robertdebock.ansible_lint
|
- role: robertdebock.ansible_lint
|
||||||
```
|
```
|
||||||
|
|
||||||
The machine may need to be prepared using `molecule/resources/prepare.yml`:
|
The machine needs to be prepared in CI this is done using `molecule/resources/prepare.yml`:
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
|
|
@ -35,44 +35,30 @@ The machine may need to be prepared using `molecule/resources/prepare.yml`:
|
||||||
- role: robertdebock.python_pip
|
- role: robertdebock.python_pip
|
||||||
```
|
```
|
||||||
|
|
||||||
For verification `molecule/resources/verify.yml` runs after the role has been applied.
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
- name: Verify
|
|
||||||
hosts: all
|
|
||||||
become: yes
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: check if connection still works
|
|
||||||
ping:
|
|
||||||
```
|
|
||||||
|
|
||||||
Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.
|
Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.
|
||||||
|
|
||||||
|
|
||||||
## [Requirements](#requirements)
|
## [Requirements](#requirements)
|
||||||
|
|
||||||
- Access to a repository containing packages, likely on the internet.
|
- pip packages listed in [requirements.txt](https://github.com/robertdebock/ansible-role-ansible_lint/blob/master/requirements.txt).
|
||||||
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
|
|
||||||
|
|
||||||
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:
|
## [Status of requirements](#status-of-requirements)
|
||||||
|
|
||||||
```yaml
|
The following roles are used to prepare a system. You may choose to prepare your system in another way, I have tested these roles as well.
|
||||||
---
|
|
||||||
- robertdebock.bootstrap
|
|
||||||
- robertdebock.buildtools
|
|
||||||
- robertdebock.epel
|
|
||||||
- robertdebock.python_pip
|
|
||||||
|
|
||||||
```
|
| Requirement | GitHub | GitLab |
|
||||||
|
|-------------|--------|--------|
|
||||||
|
| [robertdebock.bootstrap](https://galaxy.ansible.com/robertdebock/bootstrap) | [](https://github.com/robertdebock/ansible-role-bootstrap/actions) | [](https://gitlab.com/robertdebock/ansible-role-bootstrap)
|
||||||
|
| [robertdebock.buildtools](https://galaxy.ansible.com/robertdebock/buildtools) | [](https://github.com/robertdebock/ansible-role-buildtools/actions) | [](https://gitlab.com/robertdebock/ansible-role-buildtools)
|
||||||
|
| [robertdebock.epel](https://galaxy.ansible.com/robertdebock/epel) | [](https://github.com/robertdebock/ansible-role-epel/actions) | [](https://gitlab.com/robertdebock/ansible-role-epel)
|
||||||
|
| [robertdebock.python_pip](https://galaxy.ansible.com/robertdebock/python_pip) | [](https://github.com/robertdebock/ansible-role-python_pip/actions) | [](https://gitlab.com/robertdebock/ansible-role-python_pip)
|
||||||
|
|
||||||
## [Context](#context)
|
## [Context](#context)
|
||||||
|
|
||||||
This role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.
|
This role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.
|
||||||
|
|
||||||
Here is an overview of related roles:
|
Here is an overview of related roles:
|
||||||

|

|
||||||
|
|
||||||
## [Compatibility](#compatibility)
|
## [Compatibility](#compatibility)
|
||||||
|
|
||||||
|
|
@ -81,13 +67,13 @@ This role has been tested on these [container images](https://hub.docker.com/u/r
|
||||||
|container|tags|
|
|container|tags|
|
||||||
|---------|----|
|
|---------|----|
|
||||||
|el|8|
|
|el|8|
|
||||||
|debian|buster, bullseye|
|
|debian|all|
|
||||||
|fedora|31, 32|
|
|fedora|all|
|
||||||
|ubuntu|focal, bionic, xenial|
|
|ubuntu|focal, bionic|
|
||||||
|
|
||||||
The minimum version of Ansible required is 2.8 but tests have been done to:
|
The minimum version of Ansible required is 2.10, tests have been done to:
|
||||||
|
|
||||||
- The previous version, on version lower.
|
- The previous version.
|
||||||
- The current version.
|
- The current version.
|
||||||
- The development version.
|
- The development version.
|
||||||
|
|
||||||
|
|
@ -101,40 +87,8 @@ Some variarations of the build matrix do not work. These are the variations and
|
||||||
| amazonlinux | No module named pkg_resources |
|
| amazonlinux | No module named pkg_resources |
|
||||||
|
|
||||||
|
|
||||||
## [Testing](#testing)
|
|
||||||
|
|
||||||
[Unit tests](https://travis-ci.com/robertdebock/ansible-role-ansible_lint) are done on every commit, pull request, release and periodically.
|
|
||||||
|
|
||||||
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-ansible_lint/issues)
|
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-ansible_lint/issues)
|
||||||
|
|
||||||
Testing is done using [Tox](https://tox.readthedocs.io/en/latest/) and [Molecule](https://github.com/ansible/molecule):
|
|
||||||
|
|
||||||
[Tox](https://tox.readthedocs.io/en/latest/) tests multiple ansible versions.
|
|
||||||
[Molecule](https://github.com/ansible/molecule) tests multiple distributions.
|
|
||||||
|
|
||||||
To test using the defaults (any installed ansible version, namespace: `robertdebock`, image: `fedora`, tag: `latest`):
|
|
||||||
|
|
||||||
```
|
|
||||||
molecule test
|
|
||||||
|
|
||||||
# Or select a specific image:
|
|
||||||
image=ubuntu molecule test
|
|
||||||
# Or select a specific image and a specific tag:
|
|
||||||
image="debian" tag="stable" tox
|
|
||||||
```
|
|
||||||
|
|
||||||
Or you can test multiple versions of Ansible, and select images:
|
|
||||||
Tox allows multiple versions of Ansible to be tested. To run the default (namespace: `robertdebock`, image: `fedora`, tag: `latest`) tests:
|
|
||||||
|
|
||||||
```
|
|
||||||
tox
|
|
||||||
|
|
||||||
# To run CentOS (namespace: `robertdebock`, tag: `latest`)
|
|
||||||
image="centos" tox
|
|
||||||
# Or customize more:
|
|
||||||
image="debian" tag="stable" tox
|
|
||||||
```
|
|
||||||
|
|
||||||
## [License](#license)
|
## [License](#license)
|
||||||
|
|
||||||
Apache-2.0
|
Apache-2.0
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
install_date: Mon Sep 28 13:21:51 2020
|
|
||||||
version: 2.3.12
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
exceptions:
|
|
||||||
- variation: amazonlinux:1
|
|
||||||
reason: "No package matching 'python3-pip'"
|
|
||||||
- variation: amazonlinux
|
|
||||||
reason: "No module named pkg_resources"
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
tox_parallel: yes
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
install_date: Mon Sep 28 13:21:51 2020
|
install_date: Sun Mar 21 06:59:18 2021
|
||||||
version: 2.3.12
|
version: 3.0.1
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ galaxy_info:
|
||||||
description: Install ansible-lint on your system.
|
description: Install ansible-lint on your system.
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
company: none
|
company: none
|
||||||
min_ansible_version: 2.8
|
min_ansible_version: "2.10"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: EL
|
- name: EL
|
||||||
|
|
@ -13,20 +13,18 @@ galaxy_info:
|
||||||
- 8
|
- 8
|
||||||
- name: Debian
|
- name: Debian
|
||||||
versions:
|
versions:
|
||||||
- buster
|
- all
|
||||||
- bullseye
|
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
versions:
|
versions:
|
||||||
- 31
|
- all
|
||||||
- 32
|
|
||||||
- name: Ubuntu
|
- name: Ubuntu
|
||||||
versions:
|
versions:
|
||||||
- focal
|
- focal
|
||||||
- bionic
|
- bionic
|
||||||
- xenial
|
|
||||||
|
|
||||||
galaxy_tags:
|
galaxy_tags:
|
||||||
- ansiblelint
|
- ansiblelint
|
||||||
- centos
|
- ansible
|
||||||
|
- lint
|
||||||
|
|
||||||
dependencies: []
|
dependencies: []
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ dependency:
|
||||||
lint: |
|
lint: |
|
||||||
set -e
|
set -e
|
||||||
yamllint .
|
yamllint .
|
||||||
|
ansible-lint
|
||||||
driver:
|
driver:
|
||||||
name: docker
|
name: docker
|
||||||
platforms:
|
platforms:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
- robertdebock.bootstrap
|
|
||||||
- robertdebock.buildtools
|
|
||||||
- robertdebock.epel
|
|
||||||
- robertdebock.python_pip
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
- robertdebock.bootstrap
|
roles:
|
||||||
- robertdebock.buildtools
|
- name: robertdebock.bootstrap
|
||||||
- robertdebock.epel
|
- name: robertdebock.buildtools
|
||||||
- robertdebock.python_pip
|
- name: robertdebock.epel
|
||||||
|
- name: robertdebock.python_pip
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
# tasks file for ansible_lint
|
# tasks file for ansible_lint
|
||||||
|
|
||||||
- name: install ansible_lint
|
- name: install ansible_lint
|
||||||
pip:
|
ansible.builtin.pip:
|
||||||
name: "{{ ansible_lint_packages }}"
|
name: "{{ ansible_lint_packages }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
|
||||||
|
|
@ -2,25 +2,25 @@
|
||||||
# Ansible managed
|
# Ansible managed
|
||||||
#
|
#
|
||||||
[tox]
|
[tox]
|
||||||
minversion = 3.7
|
minversion = 3.21.4
|
||||||
# Disabled "next" because of:
|
# 2.11 has been disabled: couldn't resolve module/action 'docker_container'.
|
||||||
# https://github.com/ansible-community/molecule/issues/2626.
|
envlist = py{39}-ansible-{2.9,2.10}
|
||||||
# envlist = py{38}-ansible-{previous,current,next}
|
|
||||||
envlist = py{38}-ansible-{previous,current}
|
|
||||||
skipsdist = true
|
skipsdist = true
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
previous: ansible>=2.8, <2.9
|
2.9: ansible == 2.9.*
|
||||||
current: ansible>=2.9
|
2.10: ansible == 2.10.*
|
||||||
next: git+https://github.com/ansible/ansible.git@devel
|
2.11: git+https://github.com/ansible/ansible.git@devel
|
||||||
molecule[lint]>=3, <4
|
molecule[docker]
|
||||||
docker>=4.2, <4.3
|
docker == 4.*
|
||||||
|
ansible-lint == 5.*
|
||||||
commands = molecule test
|
commands = molecule test
|
||||||
setenv =
|
setenv =
|
||||||
TOX_ENVNAME={envname}
|
TOX_ENVNAME={envname}
|
||||||
MOLECULE_EPHEMERAL_DIRECTORY=/tmp/.molecule/{env:image:fedora}-{env:tag:latest}/{envname}
|
|
||||||
PY_COLORS=1
|
PY_COLORS=1
|
||||||
ANSIBLE_FORCE_COLOR=1
|
ANSIBLE_FORCE_COLOR=1
|
||||||
|
ANSIBLE_ROLES_PATH=../
|
||||||
|
|
||||||
passenv = namespace image tag
|
passenv = namespace image tag
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
# vars file for ansible_lint
|
|
||||||
|
|
||||||
ansible_lint_packages:
|
|
||||||
- ansible-lint
|
|
||||||
|
|
@ -4,5 +4,9 @@
|
||||||
exclude_paths:
|
exclude_paths:
|
||||||
- ./meta/exception.yml
|
- ./meta/exception.yml
|
||||||
- ./meta/preferences.yml
|
- ./meta/preferences.yml
|
||||||
|
- ./molecule/default/prepare.yml
|
||||||
|
- ./molecule/default/converge.yml
|
||||||
- ./molecule/default/verify.yml
|
- ./molecule/default/verify.yml
|
||||||
|
- ./molecule/default/collections.yml
|
||||||
- ./.tox
|
- ./.tox
|
||||||
|
- ./.cache
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
github: robertdebock
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
name: Pull request
|
|
||||||
about: Describe the proposed change
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Describe the change**
|
|
||||||
A clear and concise description of what the pull request is.
|
|
||||||
|
|
||||||
**Testing**
|
|
||||||
In case a feature was added, how were tests performed?
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
#
|
|
||||||
# Ansible managed
|
|
||||||
#
|
|
||||||
repository:
|
|
||||||
description: Install and configure ara on your system.
|
|
||||||
homepage: https://robertdebock.nl/
|
|
||||||
|
|
@ -5,3 +5,4 @@
|
||||||
repository:
|
repository:
|
||||||
description: Install and configure ara on your system.
|
description: Install and configure ara on your system.
|
||||||
homepage: https://robertdebock.nl/
|
homepage: https://robertdebock.nl/
|
||||||
|
topics: ansiblerecordsansible, ara, arareportsansible, cloud, development, monitoring, reporting, ansible, molecule, tox, playbook, hacktoberfest
|
||||||
|
|
|
||||||
|
|
@ -6,17 +6,13 @@
|
||||||
name: Release to Ansible Galaxy
|
name: Release to Ansible Galaxy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
tags:
|
types: [created, edited, published, released]
|
||||||
- '*'
|
|
||||||
schedule:
|
|
||||||
- cron: '1 1 1 * *'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: galaxy
|
- name: galaxy
|
||||||
uses: robertdebock/galaxy-action@1.0.1
|
uses: robertdebock/galaxy-action@1.1.0
|
||||||
with:
|
with:
|
||||||
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
||||||
|
|
|
||||||
|
|
@ -15,20 +15,20 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: "${{ github.repository }}"
|
path: "${{ github.repository }}"
|
||||||
- name: molecule
|
- name: molecule
|
||||||
uses: robertdebock/molecule-action@2.6.2
|
uses: robertdebock/molecule-action@2.6.16
|
||||||
with:
|
with:
|
||||||
command: lint
|
command: lint
|
||||||
test:
|
test:
|
||||||
needs:
|
needs:
|
||||||
- lint
|
- lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -40,7 +40,7 @@ jobs:
|
||||||
- image: "debian"
|
- image: "debian"
|
||||||
tag: "bullseye"
|
tag: "bullseye"
|
||||||
- image: "fedora"
|
- image: "fedora"
|
||||||
tag: "31"
|
tag: "32"
|
||||||
- image: "fedora"
|
- image: "fedora"
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
- image: "ubuntu"
|
- image: "ubuntu"
|
||||||
|
|
@ -55,10 +55,7 @@ jobs:
|
||||||
- name: parse apparmor for mysql
|
- name: parse apparmor for mysql
|
||||||
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
||||||
- name: molecule
|
- name: molecule
|
||||||
uses: robertdebock/molecule-action@2.6.2
|
uses: robertdebock/molecule-action@2.6.16
|
||||||
with:
|
with:
|
||||||
image: ${{ matrix.config.image }}
|
image: ${{ matrix.config.image }}
|
||||||
tag: ${{ matrix.config.tag }}
|
tag: ${{ matrix.config.tag }}
|
||||||
options: "--parallel all"
|
|
||||||
env:
|
|
||||||
TOX_PARALLEL_NO_SPINNER: 1
|
|
||||||
|
|
|
||||||
|
|
@ -2,3 +2,4 @@
|
||||||
*.log
|
*.log
|
||||||
*.swp
|
*.swp
|
||||||
.tox
|
.tox
|
||||||
|
.cache
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
.molecule
|
|
||||||
*.log
|
|
||||||
*.swp
|
|
||||||
.tox
|
|
||||||
|
|
@ -8,36 +8,23 @@ os: linux
|
||||||
dist: xenial
|
dist: xenial
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- "3.8"
|
- "3.9"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
namespace="robertdebock"
|
|
||||||
jobs:
|
|
||||||
- image="centos" tag="latest"
|
|
||||||
- image="debian" tag="latest"
|
|
||||||
- image="debian" tag="bullseye"
|
|
||||||
- image="fedora" tag="31"
|
|
||||||
- image="fedora" tag="latest"
|
|
||||||
- image="ubuntu" tag="bionic"
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- pip
|
- pip
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip install tox
|
- pip install yamllint
|
||||||
|
- pip install ansible-lint
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- function retry { counter=0 ; until "$@" ; do exit=$? ; counter=$(($counter + 1)) ; if [ $counter -ge 3 ] ; then return $exit ; fi ; done ; return 0; } ; retry tox --parallel all
|
- yamllint .
|
||||||
|
- ansible-lint
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
slack:
|
|
||||||
secure: "dACQ6+hjrlymJb+XtpgegARWoz/k5ngOmpcPXfttkYmocU07ergyvn7xFF2PwCyw2wCds+E/iK2tOTMZ9yN6wbjGHfWbPsIJEzU6TyIYCoH5NJRn4j32Iql1y9lEGxYg1eaH7FIN0MLRMPuDLK6IINCBxaHR4GqIrIwrBIuGUInkzGQZhSDQ5xRYef+EfZIdmyQNOH7pW5n9zjbF1csy3bhZoem9/JLIfy7I+o08ddZYepdk7qYFmSEgR7TB1stTVZuCthRHdLZhgoW5tYrIpWXJD2OlIywaLMsJEfhW7EIfhd8aU8qbE8B7gjDkAYcaqK6D3zJr0TLI4u0ZLyMRwFDQSiMpr3IUeeR/Gtefu9KeSdxtPTDWZd0XA5sDmgRNe5m6FUNOnVZSwExdq5fWyzzaTqtqYu6YpWYXOa/zaodvHnouXlAeOWWFrmoV/I8MBF2ut5LwaiEK6XYfFt3o57RZynWe4z4KpLInwuBjjnaadYKzl1MMRFD+iNZQCP3BqbCR3pJcEash3yXFx/RW9eyVYnLSNnt5HJW99Eu5lEp9rdfc8GObZhlulVgwOAFVjbamP8AV7BjqLOqVjasVM85/op9s6bBy3x4DEG3yFhf6tc3fp1y44r4781NPhe92qrbq/a/rF0Drzza3CNmyZhZ0jVsamz8gQBby4RLY0iQ="
|
|
||||||
on_success: change
|
|
||||||
template: "%{result}: %{repository_slug}@%{branch}, build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>)"
|
|
||||||
email: false
|
email: false
|
||||||
|
|
|
||||||
|
|
@ -13,3 +13,4 @@ rules:
|
||||||
|
|
||||||
ignore: |
|
ignore: |
|
||||||
.tox/
|
.tox/
|
||||||
|
.cache/
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@
|
||||||
same "printed page" as the copyright notice for easier
|
same "printed page" as the copyright notice for easier
|
||||||
identification within third-party archives.
|
identification within third-party archives.
|
||||||
|
|
||||||
Copyright 2020 Robert de Bock (robert@meinit.nl)
|
Copyright 2021 Robert de Bock (robert@meinit.nl)
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
Install and configure ara on your system.
|
Install and configure ara on your system.
|
||||||
|
|
||||||
|Travis|GitHub|Quality|Downloads|Version|
|
|GitHub|GitLab|Quality|Downloads|Version|
|
||||||
|------|------|-------|---------|-------|
|
|------|------|-------|---------|-------|
|
||||||
|[](https://travis-ci.com/robertdebock/ansible-role-ara)|[](https://github.com/robertdebock/ansible-role-ara/actions)|[](https://galaxy.ansible.com/robertdebock/ara)|[](https://galaxy.ansible.com/robertdebock/ara)|[](https://github.com/robertdebock/ansible-role-ara/releases/)|
|
|[](https://github.com/robertdebock/ansible-role-ara/actions)|[](https://gitlab.com/robertdebock/ansible-role-ara)|[](https://galaxy.ansible.com/robertdebock/ara)|[](https://galaxy.ansible.com/robertdebock/ara)|[](https://github.com/robertdebock/ansible-role-ara/releases/)|
|
||||||
|
|
||||||
## [Example Playbook](#example-playbook)
|
## [Example Playbook](#example-playbook)
|
||||||
|
|
||||||
|
|
@ -20,7 +20,7 @@ This example is taken from `molecule/resources/converge.yml` and is tested on ea
|
||||||
- role: robertdebock.ara
|
- role: robertdebock.ara
|
||||||
```
|
```
|
||||||
|
|
||||||
The machine may need to be prepared using `molecule/resources/prepare.yml`:
|
The machine needs to be prepared in CI this is done using `molecule/resources/prepare.yml`:
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
|
|
@ -35,19 +35,6 @@ The machine may need to be prepared using `molecule/resources/prepare.yml`:
|
||||||
- role: robertdebock.python_pip
|
- role: robertdebock.python_pip
|
||||||
```
|
```
|
||||||
|
|
||||||
For verification `molecule/resources/verify.yml` runs after the role has been applied.
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
- name: Verify
|
|
||||||
hosts: all
|
|
||||||
become: yes
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: check if connection still works
|
|
||||||
ping:
|
|
||||||
```
|
|
||||||
|
|
||||||
Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.
|
Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.
|
||||||
|
|
||||||
## [Role Variables](#role-variables)
|
## [Role Variables](#role-variables)
|
||||||
|
|
@ -77,27 +64,26 @@ ara_user: root
|
||||||
|
|
||||||
## [Requirements](#requirements)
|
## [Requirements](#requirements)
|
||||||
|
|
||||||
- Access to a repository containing packages, likely on the internet.
|
- pip packages listed in [requirements.txt](https://github.com/robertdebock/ansible-role-ara/blob/master/requirements.txt).
|
||||||
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
|
|
||||||
|
|
||||||
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:
|
## [Status of requirements](#status-of-requirements)
|
||||||
|
|
||||||
```yaml
|
The following roles are used to prepare a system. You may choose to prepare your system in another way, I have tested these roles as well.
|
||||||
---
|
|
||||||
- robertdebock.bootstrap
|
|
||||||
- robertdebock.buildtools
|
|
||||||
- robertdebock.epel
|
|
||||||
- robertdebock.python_pip
|
|
||||||
- robertdebock.service
|
|
||||||
|
|
||||||
```
|
| Requirement | GitHub | GitLab |
|
||||||
|
|-------------|--------|--------|
|
||||||
|
| [robertdebock.bootstrap](https://galaxy.ansible.com/robertdebock/bootstrap) | [](https://github.com/robertdebock/ansible-role-bootstrap/actions) | [](https://gitlab.com/robertdebock/ansible-role-bootstrap)
|
||||||
|
| [robertdebock.buildtools](https://galaxy.ansible.com/robertdebock/buildtools) | [](https://github.com/robertdebock/ansible-role-buildtools/actions) | [](https://gitlab.com/robertdebock/ansible-role-buildtools)
|
||||||
|
| [robertdebock.epel](https://galaxy.ansible.com/robertdebock/epel) | [](https://github.com/robertdebock/ansible-role-epel/actions) | [](https://gitlab.com/robertdebock/ansible-role-epel)
|
||||||
|
| [robertdebock.python_pip](https://galaxy.ansible.com/robertdebock/python_pip) | [](https://github.com/robertdebock/ansible-role-python_pip/actions) | [](https://gitlab.com/robertdebock/ansible-role-python_pip)
|
||||||
|
| [robertdebock.service](https://galaxy.ansible.com/robertdebock/service) | [](https://github.com/robertdebock/ansible-role-service/actions) | [](https://gitlab.com/robertdebock/ansible-role-service)
|
||||||
|
|
||||||
## [Context](#context)
|
## [Context](#context)
|
||||||
|
|
||||||
This role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.
|
This role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.
|
||||||
|
|
||||||
Here is an overview of related roles:
|
Here is an overview of related roles:
|
||||||

|

|
||||||
|
|
||||||
## [Compatibility](#compatibility)
|
## [Compatibility](#compatibility)
|
||||||
|
|
||||||
|
|
@ -107,12 +93,12 @@ This role has been tested on these [container images](https://hub.docker.com/u/r
|
||||||
|---------|----|
|
|---------|----|
|
||||||
|el|8|
|
|el|8|
|
||||||
|debian|buster, bullseye|
|
|debian|buster, bullseye|
|
||||||
|fedora|31, 32|
|
|fedora|all|
|
||||||
|ubuntu|bionic|
|
|ubuntu|bionic|
|
||||||
|
|
||||||
The minimum version of Ansible required is 2.8 but tests have been done to:
|
The minimum version of Ansible required is 2.10, tests have been done to:
|
||||||
|
|
||||||
- The previous version, on version lower.
|
- The previous version.
|
||||||
- The current version.
|
- The current version.
|
||||||
- The development version.
|
- The development version.
|
||||||
|
|
||||||
|
|
@ -122,46 +108,14 @@ Some variarations of the build matrix do not work. These are the variations and
|
||||||
|
|
||||||
| variation | reason |
|
| variation | reason |
|
||||||
|---------------------------|------------------------|
|
|---------------------------|------------------------|
|
||||||
| Alpine | Could not find a version that satisfies the requirement Django>=2.1.5 |
|
| alpine | Could not find a version that satisfies the requirement Django>=2.1.5 |
|
||||||
| CentOS | No matching distribution found for Django>=2.1.5 |
|
| centos:7 | No matching distribution found for Django>=2.1.5 |
|
||||||
| amazonlinux:1 | No package matching 'python3-pip' |
|
| amazonlinux:1 | No package matching 'python3-pip' |
|
||||||
| amazonlinux | No module named pkg_resources |
|
| amazonlinux | No module named pkg_resources |
|
||||||
|
|
||||||
|
|
||||||
## [Testing](#testing)
|
|
||||||
|
|
||||||
[Unit tests](https://travis-ci.com/robertdebock/ansible-role-ara) are done on every commit, pull request, release and periodically.
|
|
||||||
|
|
||||||
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-ara/issues)
|
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-ara/issues)
|
||||||
|
|
||||||
Testing is done using [Tox](https://tox.readthedocs.io/en/latest/) and [Molecule](https://github.com/ansible/molecule):
|
|
||||||
|
|
||||||
[Tox](https://tox.readthedocs.io/en/latest/) tests multiple ansible versions.
|
|
||||||
[Molecule](https://github.com/ansible/molecule) tests multiple distributions.
|
|
||||||
|
|
||||||
To test using the defaults (any installed ansible version, namespace: `robertdebock`, image: `fedora`, tag: `latest`):
|
|
||||||
|
|
||||||
```
|
|
||||||
molecule test
|
|
||||||
|
|
||||||
# Or select a specific image:
|
|
||||||
image=ubuntu molecule test
|
|
||||||
# Or select a specific image and a specific tag:
|
|
||||||
image="debian" tag="stable" tox
|
|
||||||
```
|
|
||||||
|
|
||||||
Or you can test multiple versions of Ansible, and select images:
|
|
||||||
Tox allows multiple versions of Ansible to be tested. To run the default (namespace: `robertdebock`, image: `fedora`, tag: `latest`) tests:
|
|
||||||
|
|
||||||
```
|
|
||||||
tox
|
|
||||||
|
|
||||||
# To run CentOS (namespace: `robertdebock`, tag: `latest`)
|
|
||||||
image="centos" tox
|
|
||||||
# Or customize more:
|
|
||||||
image="debian" tag="stable" tox
|
|
||||||
```
|
|
||||||
|
|
||||||
## [License](#license)
|
## [License](#license)
|
||||||
|
|
||||||
Apache-2.0
|
Apache-2.0
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,16 @@
|
||||||
---
|
---
|
||||||
# handlers file for ara
|
# handlers file for ara
|
||||||
|
|
||||||
- name: restart ara
|
- name: restart ara
|
||||||
service:
|
ansible.builtin.service:
|
||||||
name: ara
|
name: ara
|
||||||
state: restarted
|
state: restarted
|
||||||
become: yes
|
become: yes
|
||||||
|
when:
|
||||||
|
- not ansible_check_mode | bool
|
||||||
|
|
||||||
- name: systemctl daemon-reload
|
- name: systemctl daemon-reload
|
||||||
systemd:
|
ansible.builtin.systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
become: yes
|
become: yes
|
||||||
notify:
|
notify:
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
install_date: Mon Sep 28 13:21:56 2020
|
|
||||||
version: 2.5.2
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
tox_parallel: yes
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
install_date: Mon Sep 28 13:21:56 2020
|
install_date: Sun Mar 21 06:59:21 2021
|
||||||
version: 2.5.2
|
version: 3.0.3
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
exceptions:
|
exceptions:
|
||||||
- variation: Alpine
|
- variation: alpine
|
||||||
reason: "Could not find a version that satisfies the requirement Django>=2.1.5"
|
reason: "Could not find a version that satisfies the requirement Django>=2.1.5"
|
||||||
- variation: CentOS
|
- variation: centos:7
|
||||||
reason: No matching distribution found for Django>=2.1.5
|
reason: No matching distribution found for Django>=2.1.5
|
||||||
- variation: amazonlinux:1
|
- variation: amazonlinux:1
|
||||||
reason: "No package matching 'python3-pip'"
|
reason: "No package matching 'python3-pip'"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ galaxy_info:
|
||||||
description: Install and configure ara on your system.
|
description: Install and configure ara on your system.
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
company: none
|
company: none
|
||||||
min_ansible_version: 2.8
|
min_ansible_version: "2.10"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: EL
|
- name: EL
|
||||||
|
|
@ -17,8 +17,7 @@ galaxy_info:
|
||||||
- bullseye
|
- bullseye
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
versions:
|
versions:
|
||||||
- 31
|
- all
|
||||||
- 32
|
|
||||||
- name: Ubuntu
|
- name: Ubuntu
|
||||||
versions:
|
versions:
|
||||||
- bionic
|
- bionic
|
||||||
|
|
@ -28,7 +27,6 @@ galaxy_info:
|
||||||
- ara
|
- ara
|
||||||
- arareportsansible
|
- arareportsansible
|
||||||
- cloud
|
- cloud
|
||||||
- centos
|
|
||||||
- development
|
- development
|
||||||
- monitoring
|
- monitoring
|
||||||
- reporting
|
- reporting
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
---
|
|
||||||
- name: Converge
|
|
||||||
hosts: all
|
|
||||||
become: yes
|
|
||||||
gather_facts: yes
|
|
||||||
|
|
||||||
roles:
|
|
||||||
- role: ansible-role-ara
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
- name: Prepare
|
|
||||||
hosts: all
|
|
||||||
become: yes
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
roles:
|
|
||||||
- role: robertdebock.bootstrap
|
|
||||||
- role: robertdebock.buildtools
|
|
||||||
- role: robertdebock.epel
|
|
||||||
- role: robertdebock.python_pip
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
- name: Verify
|
|
||||||
hosts: all
|
|
||||||
become: yes
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: check if connection still works
|
|
||||||
ping:
|
|
||||||
|
|
@ -6,9 +6,11 @@ dependency:
|
||||||
name: galaxy
|
name: galaxy
|
||||||
options:
|
options:
|
||||||
role-file: requirements.yml
|
role-file: requirements.yml
|
||||||
|
requirements-file: requirements.yml
|
||||||
lint: |
|
lint: |
|
||||||
set -e
|
set -e
|
||||||
yamllint .
|
yamllint .
|
||||||
|
ansible-lint
|
||||||
driver:
|
driver:
|
||||||
name: docker
|
name: docker
|
||||||
platforms:
|
platforms:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
---
|
---
|
||||||
- robertdebock.bootstrap
|
roles:
|
||||||
- robertdebock.buildtools
|
- name: robertdebock.bootstrap
|
||||||
- robertdebock.epel
|
- name: robertdebock.buildtools
|
||||||
- robertdebock.python_pip
|
- name: robertdebock.epel
|
||||||
- robertdebock.service
|
- name: robertdebock.python_pip
|
||||||
|
- name: robertdebock.service
|
||||||
|
collections:
|
||||||
|
- name: community.general
|
||||||
|
|
|
||||||
|
|
@ -1,34 +1,33 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: test if ara_configuration_file is set correctly
|
- name: test if ara_configuration_file is set correctly
|
||||||
assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- ara_configuration_file is defined
|
- ara_configuration_file is defined
|
||||||
- ara_configuration_file | length > 0
|
- ara_configuration_file is string
|
||||||
quiet: yes
|
quiet: yes
|
||||||
|
|
||||||
- name: test if ara_user is set correctly
|
- name: test if ara_user is set correctly
|
||||||
assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- ara_user is defined
|
- ara_user is defined
|
||||||
- ara_user | length > 0
|
- ara_user is string
|
||||||
quiet: yes
|
quiet: yes
|
||||||
|
|
||||||
- name: test if ara_configuration is set correctly
|
- name: test if ara_configuration is set correctly
|
||||||
assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- ara_configuration | length > 0
|
|
||||||
- ara_configuration is iterable
|
- ara_configuration is iterable
|
||||||
quiet: yes
|
quiet: yes
|
||||||
when:
|
when:
|
||||||
- ara_configuration is defined
|
- ara_configuration is defined
|
||||||
|
|
||||||
- name: test if item in ara_configuration is set correctly
|
- name: test if item in ara_configuration is set correctly
|
||||||
assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- item.option is defined
|
- item.option is defined
|
||||||
- item.option | length > 0
|
- item.option is string
|
||||||
- item.value is defined
|
- item.value is defined
|
||||||
- item.value | length > 0
|
|
||||||
quiet: yes
|
quiet: yes
|
||||||
loop: "{{ ara_configuration }}"
|
loop: "{{ ara_configuration }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
|
|
|
||||||
|
|
@ -1,61 +1,71 @@
|
||||||
---
|
---
|
||||||
# tasks file for ara
|
# tasks file for ara
|
||||||
|
|
||||||
- name: include assert.yml
|
- name: include assert.yml
|
||||||
include_tasks: assert.yml
|
import_tasks: assert.yml
|
||||||
|
run_once: yes
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: install ara
|
- name: install ara
|
||||||
pip:
|
ansible.builtin.pip:
|
||||||
name: ara[server]
|
name: ara[server]
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: create ara service
|
- name: create ara service
|
||||||
import_role:
|
ansible.builtin.import_role:
|
||||||
name: service
|
name: robertdebock.service
|
||||||
|
vars:
|
||||||
|
service_list:
|
||||||
|
- name: ara
|
||||||
|
description: Ansible Reports Ara
|
||||||
|
start_command: "{{ ara_binary_location }}/ara-manage runserver"
|
||||||
|
user_name: "{{ ara_user }}"
|
||||||
|
|
||||||
- name: find callback_plugins path
|
- name: find callback_plugins path
|
||||||
block:
|
block:
|
||||||
- name: try python2
|
- name: try python2
|
||||||
command: "{{ ara_setup_command_python2 }}"
|
ansible.builtin.command: "{{ ara_setup_command_python2 }}"
|
||||||
register: ara_callback_plugins
|
register: ara_callback_plugins
|
||||||
changed_when: no
|
changed_when: no
|
||||||
check_mode: no
|
check_mode: no
|
||||||
|
|
||||||
rescue:
|
rescue:
|
||||||
- name: try python3
|
- name: try python3
|
||||||
command: "{{ ara_setup_command_python3 }}"
|
ansible.builtin.command: "{{ ara_setup_command_python3 }}"
|
||||||
register: ara_callback_plugins
|
register: ara_callback_plugins
|
||||||
changed_when: no
|
changed_when: no
|
||||||
|
|
||||||
- name: configure ansible to use ara
|
- name: configure ansible and ara
|
||||||
ini_file:
|
block:
|
||||||
path: "{{ ara_configuration_file }}"
|
- name: configure ansible to use ara
|
||||||
section: defaults
|
community.general.ini_file:
|
||||||
option: callback_plugins
|
path: "{{ ara_configuration_file }}"
|
||||||
value: "{{ ara_callback_plugins.stdout }}"
|
section: defaults
|
||||||
mode: "0644"
|
option: callback_plugins
|
||||||
notify:
|
value: "{{ ara_callback_plugins.stdout }}"
|
||||||
- restart ara
|
mode: "0644"
|
||||||
when:
|
notify:
|
||||||
- ara_configuration_file is defined
|
- restart ara
|
||||||
- ara_callback_plugins.stdout is defined
|
when:
|
||||||
|
- ara_callback_plugins.stdout is defined
|
||||||
|
|
||||||
- name: configure ara
|
- name: configure ara
|
||||||
ini_file:
|
community.general.ini_file:
|
||||||
path: "{{ ara_configuration_file }}"
|
path: "{{ ara_configuration_file }}"
|
||||||
section: ara
|
section: ara
|
||||||
option: "{{ item.option }}"
|
option: "{{ item.option }}"
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify:
|
notify:
|
||||||
- restart ara
|
- restart ara
|
||||||
loop: "{{ ara_configuration }}"
|
loop: "{{ ara_configuration }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.option }}"
|
||||||
when:
|
when:
|
||||||
- ara_configuration is defined
|
- ara_configuration is defined
|
||||||
loop_control:
|
|
||||||
label: "{{ item.option }}"
|
|
||||||
|
|
||||||
- name: start and enable ara
|
- name: start and enable ara
|
||||||
service:
|
ansible.builtin.service:
|
||||||
name: ara
|
name: ara
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
|
||||||
|
|
@ -2,25 +2,25 @@
|
||||||
# Ansible managed
|
# Ansible managed
|
||||||
#
|
#
|
||||||
[tox]
|
[tox]
|
||||||
minversion = 3.7
|
minversion = 3.21.4
|
||||||
# Disabled "next" because of:
|
# 2.11 has been disabled: couldn't resolve module/action 'docker_container'.
|
||||||
# https://github.com/ansible-community/molecule/issues/2626.
|
envlist = py{39}-ansible-{2.9,2.10}
|
||||||
# envlist = py{38}-ansible-{previous,current,next}
|
|
||||||
envlist = py{38}-ansible-{previous,current}
|
|
||||||
skipsdist = true
|
skipsdist = true
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
previous: ansible>=2.8, <2.9
|
2.9: ansible == 2.9.*
|
||||||
current: ansible>=2.9
|
2.10: ansible == 2.10.*
|
||||||
next: git+https://github.com/ansible/ansible.git@devel
|
2.11: git+https://github.com/ansible/ansible.git@devel
|
||||||
molecule[lint]>=3, <4
|
molecule[docker]
|
||||||
docker>=4.2, <4.3
|
docker == 4.*
|
||||||
|
ansible-lint == 5.*
|
||||||
commands = molecule test
|
commands = molecule test
|
||||||
setenv =
|
setenv =
|
||||||
TOX_ENVNAME={envname}
|
TOX_ENVNAME={envname}
|
||||||
MOLECULE_EPHEMERAL_DIRECTORY=/tmp/.molecule/{env:image:fedora}-{env:tag:latest}/{envname}
|
|
||||||
PY_COLORS=1
|
PY_COLORS=1
|
||||||
ANSIBLE_FORCE_COLOR=1
|
ANSIBLE_FORCE_COLOR=1
|
||||||
|
ANSIBLE_ROLES_PATH=../
|
||||||
|
|
||||||
passenv = namespace image tag
|
passenv = namespace image tag
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,3 @@ ara_binary_location: "{{ _ara_binary_location[ansible_os_family] | default(_ara_
|
||||||
|
|
||||||
ara_setup_command_python2: python -m ara.setup.callback_plugins
|
ara_setup_command_python2: python -m ara.setup.callback_plugins
|
||||||
ara_setup_command_python3: python3 -m ara.setup.callback_plugins
|
ara_setup_command_python3: python3 -m ara.setup.callback_plugins
|
||||||
|
|
||||||
service_list:
|
|
||||||
- name: ara
|
|
||||||
description: Ansible Reports Ara
|
|
||||||
start_command: "{{ ara_binary_location }}/ara-manage runserver"
|
|
||||||
user_name: "{{ ara_user }}"
|
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,9 @@
|
||||||
exclude_paths:
|
exclude_paths:
|
||||||
- ./meta/exception.yml
|
- ./meta/exception.yml
|
||||||
- ./meta/preferences.yml
|
- ./meta/preferences.yml
|
||||||
|
- ./molecule/default/prepare.yml
|
||||||
|
- ./molecule/default/converge.yml
|
||||||
- ./molecule/default/verify.yml
|
- ./molecule/default/verify.yml
|
||||||
|
- ./molecule/default/collections.yml
|
||||||
- ./.tox
|
- ./.tox
|
||||||
|
- ./.cache
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
github: robertdebock
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
name: Pull request
|
|
||||||
about: Describe the proposed change
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Describe the change**
|
|
||||||
A clear and concise description of what the pull request is.
|
|
||||||
|
|
||||||
**Testing**
|
|
||||||
In case a feature was added, how were tests performed?
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
#
|
|
||||||
# Ansible managed
|
|
||||||
#
|
|
||||||
repository:
|
|
||||||
description: Install atom on your system.
|
|
||||||
homepage: https://robertdebock.nl/
|
|
||||||
|
|
@ -5,3 +5,4 @@
|
||||||
repository:
|
repository:
|
||||||
description: Install atom on your system.
|
description: Install atom on your system.
|
||||||
homepage: https://robertdebock.nl/
|
homepage: https://robertdebock.nl/
|
||||||
|
topics: atom, ide, ansible, molecule, tox, playbook, hacktoberfest
|
||||||
|
|
|
||||||
|
|
@ -6,17 +6,13 @@
|
||||||
name: Release to Ansible Galaxy
|
name: Release to Ansible Galaxy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
tags:
|
types: [created, edited, published, released]
|
||||||
- '*'
|
|
||||||
schedule:
|
|
||||||
- cron: '1 1 1 * *'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: galaxy
|
- name: galaxy
|
||||||
uses: robertdebock/galaxy-action@1.0.1
|
uses: robertdebock/galaxy-action@1.1.0
|
||||||
with:
|
with:
|
||||||
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
||||||
|
|
|
||||||
|
|
@ -15,32 +15,30 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: "${{ github.repository }}"
|
path: "${{ github.repository }}"
|
||||||
- name: molecule
|
- name: molecule
|
||||||
uses: robertdebock/molecule-action@2.6.2
|
uses: robertdebock/molecule-action@2.6.16
|
||||||
with:
|
with:
|
||||||
command: lint
|
command: lint
|
||||||
test:
|
test:
|
||||||
needs:
|
needs:
|
||||||
- lint
|
- lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
- image: "centos"
|
|
||||||
tag: "7"
|
|
||||||
- image: "centos"
|
- image: "centos"
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
- image: "debian"
|
- image: "debian"
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
- image: "fedora"
|
- image: "fedora"
|
||||||
tag: "31"
|
tag: "32"
|
||||||
- image: "fedora"
|
- image: "fedora"
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
- image: "opensuse"
|
- image: "opensuse"
|
||||||
|
|
@ -49,8 +47,6 @@ jobs:
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
- image: "ubuntu"
|
- image: "ubuntu"
|
||||||
tag: "bionic"
|
tag: "bionic"
|
||||||
- image: "ubuntu"
|
|
||||||
tag: "xenial"
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
@ -61,10 +57,7 @@ jobs:
|
||||||
- name: parse apparmor for mysql
|
- name: parse apparmor for mysql
|
||||||
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
||||||
- name: molecule
|
- name: molecule
|
||||||
uses: robertdebock/molecule-action@2.6.2
|
uses: robertdebock/molecule-action@2.6.16
|
||||||
with:
|
with:
|
||||||
image: ${{ matrix.config.image }}
|
image: ${{ matrix.config.image }}
|
||||||
tag: ${{ matrix.config.tag }}
|
tag: ${{ matrix.config.tag }}
|
||||||
options: "--parallel all"
|
|
||||||
env:
|
|
||||||
TOX_PARALLEL_NO_SPINNER: 1
|
|
||||||
|
|
|
||||||
|
|
@ -2,3 +2,4 @@
|
||||||
*.log
|
*.log
|
||||||
*.swp
|
*.swp
|
||||||
.tox
|
.tox
|
||||||
|
.cache
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
.molecule
|
|
||||||
*.log
|
|
||||||
*.swp
|
|
||||||
.tox
|
|
||||||
|
|
@ -8,39 +8,23 @@ os: linux
|
||||||
dist: xenial
|
dist: xenial
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- "3.8"
|
- "3.9"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
namespace="robertdebock"
|
|
||||||
jobs:
|
|
||||||
- image="centos" tag="7"
|
|
||||||
- image="centos" tag="latest"
|
|
||||||
- image="debian" tag="latest"
|
|
||||||
- image="fedora" tag="31"
|
|
||||||
- image="fedora" tag="latest"
|
|
||||||
- image="opensuse" tag="latest"
|
|
||||||
- image="ubuntu" tag="latest"
|
|
||||||
- image="ubuntu" tag="bionic"
|
|
||||||
- image="ubuntu" tag="xenial"
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- pip
|
- pip
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip install tox
|
- pip install yamllint
|
||||||
|
- pip install ansible-lint
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- function retry { counter=0 ; until "$@" ; do exit=$? ; counter=$(($counter + 1)) ; if [ $counter -ge 3 ] ; then return $exit ; fi ; done ; return 0; } ; retry tox --parallel all
|
- yamllint .
|
||||||
|
- ansible-lint
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
slack:
|
|
||||||
secure: "YzJVJjKrJ6/mOCRGmFlaLWW1U9/sVQGuFd9ENj2ErPas+Yb4RTGR3+3HgRD9mqS77jkcbCUOjr9vlZpqXaWLMCVDQfLpk3XlyhcifLR6gCPH7DW/pdsvtDRXSbldPb2yMJFM4cHZvqWHq2rXaN0VuI8MHpV54hXc6f8f2pIl2SyBeLmSDAs6yrs0LGvJfWEMcXNqe25MX2YdsCuu8CsVeXOzqVgaRAhSP3nB/eF85ElxrpXyca+s2osGYPuhKLfkss/oqp9Z8Bk4uWe//dAKuGbCWK5C89htCZvYygx8iS1PGLCHGVAhRiKWynVURMx0K6AEqinRy3Mow44TXdY3A4ots3QZeZUNB4le5JZTCrP4+QAtbM31O1Fk8LNxoVQnXB7tuZUJYWX5jrYIxlzAC43DsPcBQsF0Uz1xnNQAhJVtOGzwDjz2lq82cH6ENvUJbQE49mxcFMdvmMrPcxuQBr31N5/UB4txOzl6W41iE/XXOiR5sm0ksNLRN3Uadaefcpy+Sijr0g4HX3tB2ycMIWHV5WfluYyifor2dEar2VsTkTtTiyjaBGutk8vIwQGdoPhTAMu5AwQJOclLjup9vhX8wNG5X/GjmNtny0xVCvxoI5Qw/kbNdCnre2AqqzEvNw8q6mXHyJlaOJ+MnT1CdewzC0UNW/Y1Q67qtmdKpAE="
|
|
||||||
on_success: change
|
|
||||||
template: "%{result}: %{repository_slug}@%{branch}, build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>)"
|
|
||||||
email: false
|
email: false
|
||||||
|
|
|
||||||
|
|
@ -13,3 +13,4 @@ rules:
|
||||||
|
|
||||||
ignore: |
|
ignore: |
|
||||||
.tox/
|
.tox/
|
||||||
|
.cache/
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@
|
||||||
same "printed page" as the copyright notice for easier
|
same "printed page" as the copyright notice for easier
|
||||||
identification within third-party archives.
|
identification within third-party archives.
|
||||||
|
|
||||||
Copyright 2020 Robert de Bock (robert@meinit.nl)
|
Copyright 2021 Robert de Bock (robert@meinit.nl)
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
Install atom on your system.
|
Install atom on your system.
|
||||||
|
|
||||||
|Travis|GitHub|Quality|Downloads|Version|
|
|GitHub|GitLab|Quality|Downloads|Version|
|
||||||
|------|------|-------|---------|-------|
|
|------|------|-------|---------|-------|
|
||||||
|[](https://travis-ci.com/robertdebock/ansible-role-atom)|[](https://github.com/robertdebock/ansible-role-atom/actions)|[](https://galaxy.ansible.com/robertdebock/atom)|[](https://galaxy.ansible.com/robertdebock/atom)|[](https://github.com/robertdebock/ansible-role-atom/releases/)|
|
|[](https://github.com/robertdebock/ansible-role-atom/actions)|[](https://gitlab.com/robertdebock/ansible-role-atom)|[](https://galaxy.ansible.com/robertdebock/atom)|[](https://galaxy.ansible.com/robertdebock/atom)|[](https://github.com/robertdebock/ansible-role-atom/releases/)|
|
||||||
|
|
||||||
## [Example Playbook](#example-playbook)
|
## [Example Playbook](#example-playbook)
|
||||||
|
|
||||||
|
|
@ -20,7 +20,7 @@ This example is taken from `molecule/resources/converge.yml` and is tested on ea
|
||||||
- role: robertdebock.atom
|
- role: robertdebock.atom
|
||||||
```
|
```
|
||||||
|
|
||||||
The machine may need to be prepared using `molecule/resources/prepare.yml`:
|
The machine needs to be prepared in CI this is done using `molecule/resources/prepare.yml`:
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
|
|
@ -32,19 +32,6 @@ The machine may need to be prepared using `molecule/resources/prepare.yml`:
|
||||||
- role: robertdebock.bootstrap
|
- role: robertdebock.bootstrap
|
||||||
```
|
```
|
||||||
|
|
||||||
For verification `molecule/resources/verify.yml` runs after the role has been applied.
|
|
||||||
```yaml
|
|
||||||
---
|
|
||||||
- name: Verify
|
|
||||||
hosts: all
|
|
||||||
become: yes
|
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: check if atom exists works
|
|
||||||
command: file /usr/bin/atom
|
|
||||||
```
|
|
||||||
|
|
||||||
Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.
|
Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.
|
||||||
|
|
||||||
## [Role Variables](#role-variables)
|
## [Role Variables](#role-variables)
|
||||||
|
|
@ -63,23 +50,22 @@ atom_apm_packages:
|
||||||
|
|
||||||
## [Requirements](#requirements)
|
## [Requirements](#requirements)
|
||||||
|
|
||||||
- Access to a repository containing packages, likely on the internet.
|
- pip packages listed in [requirements.txt](https://github.com/robertdebock/ansible-role-atom/blob/master/requirements.txt).
|
||||||
- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)
|
|
||||||
|
|
||||||
The following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:
|
## [Status of requirements](#status-of-requirements)
|
||||||
|
|
||||||
```yaml
|
The following roles are used to prepare a system. You may choose to prepare your system in another way, I have tested these roles as well.
|
||||||
---
|
|
||||||
- robertdebock.bootstrap
|
|
||||||
|
|
||||||
```
|
| Requirement | GitHub | GitLab |
|
||||||
|
|-------------|--------|--------|
|
||||||
|
| [robertdebock.bootstrap](https://galaxy.ansible.com/robertdebock/bootstrap) | [](https://github.com/robertdebock/ansible-role-bootstrap/actions) | [](https://gitlab.com/robertdebock/ansible-role-bootstrap)
|
||||||
|
|
||||||
## [Context](#context)
|
## [Context](#context)
|
||||||
|
|
||||||
This role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.
|
This role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.
|
||||||
|
|
||||||
Here is an overview of related roles:
|
Here is an overview of related roles:
|
||||||

|

|
||||||
|
|
||||||
## [Compatibility](#compatibility)
|
## [Compatibility](#compatibility)
|
||||||
|
|
||||||
|
|
@ -87,15 +73,15 @@ This role has been tested on these [container images](https://hub.docker.com/u/r
|
||||||
|
|
||||||
|container|tags|
|
|container|tags|
|
||||||
|---------|----|
|
|---------|----|
|
||||||
|el|7, 8|
|
|el|8|
|
||||||
|debian|buster|
|
|debian|buster|
|
||||||
|fedora|31, 32|
|
|fedora|all|
|
||||||
|opensuse|all|
|
|opensuse|all|
|
||||||
|ubuntu|focal, bionic, xenial|
|
|ubuntu|focal, bionic|
|
||||||
|
|
||||||
The minimum version of Ansible required is 2.8 but tests have been done to:
|
The minimum version of Ansible required is 2.10, tests have been done to:
|
||||||
|
|
||||||
- The previous version, on version lower.
|
- The previous version.
|
||||||
- The current version.
|
- The current version.
|
||||||
- The development version.
|
- The development version.
|
||||||
|
|
||||||
|
|
@ -107,42 +93,11 @@ Some variarations of the build matrix do not work. These are the variations and
|
||||||
|---------------------------|------------------------|
|
|---------------------------|------------------------|
|
||||||
| amazonlinux:1 | Package: atom ... Requires: libsecret-1.so.0 ... and ... polkit |
|
| amazonlinux:1 | Package: atom ... Requires: libsecret-1.so.0 ... and ... polkit |
|
||||||
| debian:bullseye | An error occurred during the test sequence action: 'idempotence'. Cleaning up. |
|
| debian:bullseye | An error occurred during the test sequence action: 'idempotence'. Cleaning up. |
|
||||||
|
| centos:7 | /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found |
|
||||||
|
|
||||||
|
|
||||||
## [Testing](#testing)
|
|
||||||
|
|
||||||
[Unit tests](https://travis-ci.com/robertdebock/ansible-role-atom) are done on every commit, pull request, release and periodically.
|
|
||||||
|
|
||||||
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-atom/issues)
|
If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-atom/issues)
|
||||||
|
|
||||||
Testing is done using [Tox](https://tox.readthedocs.io/en/latest/) and [Molecule](https://github.com/ansible/molecule):
|
|
||||||
|
|
||||||
[Tox](https://tox.readthedocs.io/en/latest/) tests multiple ansible versions.
|
|
||||||
[Molecule](https://github.com/ansible/molecule) tests multiple distributions.
|
|
||||||
|
|
||||||
To test using the defaults (any installed ansible version, namespace: `robertdebock`, image: `fedora`, tag: `latest`):
|
|
||||||
|
|
||||||
```
|
|
||||||
molecule test
|
|
||||||
|
|
||||||
# Or select a specific image:
|
|
||||||
image=ubuntu molecule test
|
|
||||||
# Or select a specific image and a specific tag:
|
|
||||||
image="debian" tag="stable" tox
|
|
||||||
```
|
|
||||||
|
|
||||||
Or you can test multiple versions of Ansible, and select images:
|
|
||||||
Tox allows multiple versions of Ansible to be tested. To run the default (namespace: `robertdebock`, image: `fedora`, tag: `latest`) tests:
|
|
||||||
|
|
||||||
```
|
|
||||||
tox
|
|
||||||
|
|
||||||
# To run CentOS (namespace: `robertdebock`, tag: `latest`)
|
|
||||||
image="centos" tox
|
|
||||||
# Or customize more:
|
|
||||||
image="debian" tag="stable" tox
|
|
||||||
```
|
|
||||||
|
|
||||||
## [License](#license)
|
## [License](#license)
|
||||||
|
|
||||||
Apache-2.0
|
Apache-2.0
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
install_date: Mon Sep 28 13:21:59 2020
|
|
||||||
version: 2.5.1
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
exceptions:
|
|
||||||
- variation: amazonlinux:1
|
|
||||||
reason: "Package: atom ... Requires: libsecret-1.so.0 ... and ... polkit"
|
|
||||||
- variation: debian:bullseye
|
|
||||||
reason: "An error occurred during the test sequence action: 'idempotence'. Cleaning up."
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
tox_parallel: yes
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
install_date: Mon Sep 28 13:21:59 2020
|
install_date: Sun Mar 21 06:59:24 2021
|
||||||
version: 2.5.1
|
version: 3.0.3
|
||||||
|
|
|
||||||
|
|
@ -4,3 +4,5 @@ exceptions:
|
||||||
reason: "Package: atom ... Requires: libsecret-1.so.0 ... and ... polkit"
|
reason: "Package: atom ... Requires: libsecret-1.so.0 ... and ... polkit"
|
||||||
- variation: debian:bullseye
|
- variation: debian:bullseye
|
||||||
reason: "An error occurred during the test sequence action: 'idempotence'. Cleaning up."
|
reason: "An error occurred during the test sequence action: 'idempotence'. Cleaning up."
|
||||||
|
- variation: centos:7
|
||||||
|
reason: "/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found"
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue