Fix: Re-factor repo to work with ansible 9.2.x 66/72666/2
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 22 Feb 2024 03:47:35 +0000 (13:47 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 22 Feb 2024 07:21:53 +0000 (17:21 +1000)
commitf117f3b96964b264638656c82c54b09c7739d4b6
tree7948cead1a67f53c97ca983931085dc754ffda98
parent04a8571f40cfa50c8600969bfbd997339de0bead
Fix: Re-factor repo to work with ansible 9.2.x

- The ansible roles have been updated to run on latest version on
  Ansible and python 3.10.x are pulled in by common-packer returns
  several errors with newer version of Ansible.
- The new version of ansible 9.2.x requires the code to be refactored
  and moderenized accordingly.
- Update tox to run ansible lint.
- Fixes the following Violation Summary:
     count tag                   profile    rule associated tags
     1 command-instead-of-module basic      command-shell, idiom
     2 key-order[task]           basic      formatting
     4 literal-compare           basic      idiom
     6 jinja[spacing]            basic      formatting (warning)
     5 no-free-form              basic      syntax, risk
     4 partial-become[play]      basic      unpredictability
     4 schema[playbook]          basic      core
     4 name[missing]             basic      idiom
    11 name[play]                basic      idiom
     3 yaml[octal-values]        basic      formatting, yaml
    18 yaml[truthy]              basic      formatting, yaml
     5 name[casing]              moderate   idiom
     2 risky-file-permissions    safety     unpredictability
     3 no-changed-when           shared     command-shell, idempotency
    38 fqcn[action-core]         production formatting
    11 fqcn[action]              production formatting

Issue: RELENG-5175
Change-Id: I2c6af03d197236328e2389f4694edab3fe40bfc4
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
12 files changed:
.ansible-lint-ignore [new file with mode: 0644]
provision/baseline.yaml
provision/devstack-pre-pip-centos.yaml
provision/devstack.yaml
provision/docker.yaml
provision/install-base-pkgs-RedHat.yaml
provision/install-base-pkgs-Ubuntu.yaml
provision/local-builder.yaml
provision/local-docker.yaml
provision/local-windows-builder.yaml
provision/windows-builder.yaml
tox.ini