Skip to content

This keeps ansible sample to run the CI workflow using GitHub action

Notifications You must be signed in to change notification settings

kumvijaya/ansible-cicd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible sample with workflow

CI Workflow

This uses CI workflow with below steps

  • Checkout: Checksout the repository
  • Show changed files: Shows the list of changed ansible playbook yaml files. This uses tj-actions.
  • Show diff of changed files: Shows file diffs for changed ansible playbook yaml files. This uses git diff.
  • Lint ansible files: Lints the changed ansible playbook yaml files using ansible-lint-action. This uses Lint config defined in .config/ansible-lint
  • Dry-run: Dryrun the changed ansible playbook yaml files. This uses check/dryrun mode with ansible CLI. This also uses the Inventory config (hosts) defined in deploy/hosts

CD Workflow

This uses CD workflow with below steps

Note: Each playbook should have facts collection tasks and the task to save the output to file in ./snapshots/ folder. The output file name should be host name of the platy book run. For example ./snapshots/csr1000v-1

About

This keeps ansible sample to run the CI workflow using GitHub action

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published