diff --git a/.ansible-lint b/.ansible-lint index 7e9a5e1a..4906bcfb 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,8 +1,13 @@ --- exclude_paths: + - .github + - molecule + - playbooks - roles/kube_prometheus_stack/files/ warn_list: + - jinja[invalid] - jinja[spacing] - name[casing] + - template-instead-of-copy - yaml[line-length] diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2f2521ac..de5577aa 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,16 +3,6 @@ on: pull_request: jobs: - ansible-lint: - runs-on: ubuntu-latest - container: haxorof/ansible-lint:v6 - steps: - - uses: actions/checkout@v3.0.2 - - run: ansible-lint roles - env: - GITHUB_ACTIONS: true - GITHUB_WORKFLOW: "{{ github.workflow.name }}" - images: runs-on: ubuntu-latest steps: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b10d6c86..7ea971dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,13 @@ repos: hooks: - id: conventional-pre-commit stages: - - commit-msg + - commit-msg + + - repo: https://github.com/ansible-community/ansible-lint + rev: v6.6.0 + hooks: + - id: ansible-lint + files: \.(yaml|yml)$ - repo: https://github.com/psf/black rev: 22.8.0 diff --git a/galaxy.yml b/galaxy.yml index 886adfa1..11f87766 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -4,11 +4,11 @@ namespace: vexxhost readme: README.md version: 0.1.0 authors: -- Mohammed Naser + - Mohammed Naser build_ignore: -- .tox -- .vscode -- doc + - .tox + - .vscode + - doc dependencies: ansible.netcommon: 1.2.0 ansible.posix: 1.3.0 diff --git a/roles/ceph_csi_rbd/meta/main.yml b/roles/ceph_csi_rbd/meta/main.yml index 9ad753dc..972a35f7 100644 --- a/roles/ceph_csi_rbd/meta/main.yml +++ b/roles/ceph_csi_rbd/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for Ceph CSI RBD license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/cert_manager/meta/main.yml b/roles/cert_manager/meta/main.yml index a8f7def4..61d67be9 100644 --- a/roles/cert_manager/meta/main.yml +++ b/roles/cert_manager/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for cert-manager license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/cilium/meta/main.yml b/roles/cilium/meta/main.yml index 0db2ae76..277da2b2 100644 --- a/roles/cilium/meta/main.yml +++ b/roles/cilium/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for Cilium license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/csi/meta/main.yml b/roles/csi/meta/main.yml index 73bb677b..cf5300e7 100644 --- a/roles/csi/meta/main.yml +++ b/roles/csi/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Meta role for managing CSI license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/ingress_nginx/meta/main.yml b/roles/ingress_nginx/meta/main.yml index 39fac40d..a0b26722 100644 --- a/roles/ingress_nginx/meta/main.yml +++ b/roles/ingress_nginx/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for ingress-nginx license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/ipmi_exporter/meta/main.yml b/roles/ipmi_exporter/meta/main.yml index c44b55c2..c5e9602a 100644 --- a/roles/ipmi_exporter/meta/main.yml +++ b/roles/ipmi_exporter/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for IPMI exporter license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/keepalived/meta/main.yml b/roles/keepalived/meta/main.yml index 39b6ca51..40cbf9bc 100644 --- a/roles/keepalived/meta/main.yml +++ b/roles/keepalived/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for keepalived license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/kube_prometheus_stack/meta/main.yml b/roles/kube_prometheus_stack/meta/main.yml index 560fc41f..4e2f96bc 100644 --- a/roles/kube_prometheus_stack/meta/main.yml +++ b/roles/kube_prometheus_stack/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for kube-prometheus-stack license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/kubernetes/meta/main.yml b/roles/kubernetes/meta/main.yml index 05a63051..c2c9f7ed 100644 --- a/roles/kubernetes/meta/main.yml +++ b/roles/kubernetes/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for Kubernetes license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/node_feature_discovery/meta/main.yml b/roles/node_feature_discovery/meta/main.yml index 09f196a0..a14bf41d 100644 --- a/roles/node_feature_discovery/meta/main.yml +++ b/roles/node_feature_discovery/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for node-feature-discovery license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_exporter/meta/main.yml b/roles/openstack_exporter/meta/main.yml index 4062e843..f744a00b 100644 --- a/roles/openstack_exporter/meta/main.yml +++ b/roles/openstack_exporter/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for OpenStack exporter license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_barbican/meta/main.yml b/roles/openstack_helm_barbican/meta/main.yml index 0a1f600e..a8ac4b5f 100644 --- a/roles/openstack_helm_barbican/meta/main.yml +++ b/roles/openstack_helm_barbican/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for OpenStack Barbican license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_cinder/meta/main.yml b/roles/openstack_helm_cinder/meta/main.yml index 1329a767..bc405404 100644 --- a/roles/openstack_helm_cinder/meta/main.yml +++ b/roles/openstack_helm_cinder/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for OpenStack Cinder license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_glance/meta/main.yml b/roles/openstack_helm_glance/meta/main.yml index 37cf04b2..d286883a 100644 --- a/roles/openstack_helm_glance/meta/main.yml +++ b/roles/openstack_helm_glance/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for OpenStack Glance license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_heat/meta/main.yml b/roles/openstack_helm_heat/meta/main.yml index 813e3092..db450c25 100644 --- a/roles/openstack_helm_heat/meta/main.yml +++ b/roles/openstack_helm_heat/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for OpenStack Heat license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_horizon/meta/main.yml b/roles/openstack_helm_horizon/meta/main.yml index 67b33999..db77a913 100644 --- a/roles/openstack_helm_horizon/meta/main.yml +++ b/roles/openstack_helm_horizon/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for OpenStack Horizon license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_infra_ceph_provisioners/meta/main.yml b/roles/openstack_helm_infra_ceph_provisioners/meta/main.yml index 10d37da1..f296bce4 100644 --- a/roles/openstack_helm_infra_ceph_provisioners/meta/main.yml +++ b/roles/openstack_helm_infra_ceph_provisioners/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for Ceph provisioners license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_infra_libvirt/meta/main.yml b/roles/openstack_helm_infra_libvirt/meta/main.yml index bc97584b..fbb4bbfa 100644 --- a/roles/openstack_helm_infra_libvirt/meta/main.yml +++ b/roles/openstack_helm_infra_libvirt/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for Libvirt license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_infra_memcached/meta/main.yml b/roles/openstack_helm_infra_memcached/meta/main.yml index cd0fc411..957f2d5b 100644 --- a/roles/openstack_helm_infra_memcached/meta/main.yml +++ b/roles/openstack_helm_infra_memcached/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for Memcached license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_infra_openvswitch/meta/main.yml b/roles/openstack_helm_infra_openvswitch/meta/main.yml index 6cf0382b..bc3f67d1 100644 --- a/roles/openstack_helm_infra_openvswitch/meta/main.yml +++ b/roles/openstack_helm_infra_openvswitch/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for Open vSwitch license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_keystone/meta/main.yml b/roles/openstack_helm_keystone/meta/main.yml index 2b0e0af4..3af27e38 100644 --- a/roles/openstack_helm_keystone/meta/main.yml +++ b/roles/openstack_helm_keystone/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for OpenStack Keystone license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_neutron/meta/main.yml b/roles/openstack_helm_neutron/meta/main.yml index ea1d39ea..34239c6b 100644 --- a/roles/openstack_helm_neutron/meta/main.yml +++ b/roles/openstack_helm_neutron/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for OpenStack Neutron license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_nova/meta/main.yml b/roles/openstack_helm_nova/meta/main.yml index 0f9ae3fc..f1889f37 100644 --- a/roles/openstack_helm_nova/meta/main.yml +++ b/roles/openstack_helm_nova/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for OpenStack Nova license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_placement/meta/main.yml b/roles/openstack_helm_placement/meta/main.yml index 7b992516..3ea3f3dd 100644 --- a/roles/openstack_helm_placement/meta/main.yml +++ b/roles/openstack_helm_placement/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for OpenStack Placement license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_senlin/meta/main.yml b/roles/openstack_helm_senlin/meta/main.yml index 5a0c03cd..41d1c570 100644 --- a/roles/openstack_helm_senlin/meta/main.yml +++ b/roles/openstack_helm_senlin/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for OpenStack Senlin license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/openstack_helm_tempest/meta/main.yml b/roles/openstack_helm_tempest/meta/main.yml index 09e2ee97..3eacbc42 100644 --- a/roles/openstack_helm_tempest/meta/main.yml +++ b/roles/openstack_helm_tempest/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for OpenStack Tempest license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/percona_xtradb_cluster/meta/main.yml b/roles/percona_xtradb_cluster/meta/main.yml index 0a13f949..d090afea 100644 --- a/roles/percona_xtradb_cluster/meta/main.yml +++ b/roles/percona_xtradb_cluster/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for Percona XtraDB Cluster license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/powerstore_csi/meta/main.yml b/roles/powerstore_csi/meta/main.yml index 7f030216..da694c3a 100644 --- a/roles/powerstore_csi/meta/main.yml +++ b/roles/powerstore_csi/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for PowerStore CSI license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/prometheus_pushgateway/meta/main.yml b/roles/prometheus_pushgateway/meta/main.yml index 0a3a8060..db1a3c7f 100644 --- a/roles/prometheus_pushgateway/meta/main.yml +++ b/roles/prometheus_pushgateway/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for Prometheus Pushgateway license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/rabbitmq/meta/main.yml b/roles/rabbitmq/meta/main.yml index dbe22a6c..f3d87970 100644 --- a/roles/rabbitmq/meta/main.yml +++ b/roles/rabbitmq/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for RabbitMQ license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: diff --git a/roles/rabbitmq_operator/meta/main.yml b/roles/rabbitmq_operator/meta/main.yml index 1b188e79..c2e16c9b 100644 --- a/roles/rabbitmq_operator/meta/main.yml +++ b/roles/rabbitmq_operator/meta/main.yml @@ -17,6 +17,7 @@ galaxy_info: description: Ansible role for RabbitMQ operator license: Apache-2.0 min_ansible_version: 5.5.0 + standalone: false platforms: - name: Ubuntu versions: