Skip to content

Triggering CI

Let's now finally trigger a pipeline by making a simple change to our Ansible code base.

The Change

All we're going to do is update the main.yaml file.

  1. Using the http-cats/configuration/ansible repository
  2. Edit the main.yaml file and simply add Testing to the bottom
  3. Save the file and git commit ... it to the repository
  4. Use git push to push your changes to the remote in GitLab

Now navigate to the CI/CD pipelines in GitLab and you'll see a pipeline has executed.

Exercises

  1. Undo the change made to the main.yaml file, commit and push the changes, and check that another pipeline runes

Next

We're now going to discuss what we've done, and why.