Chapter 12: Git and Development Containers
Git for Ansible quiz
Ten questions on Git, development containers and execution environments. Aim for at least eight.
- You edited `site.yml` and ran `git add site.yml`. Where is that version of the file now?
- Which command copies a remote repository, with its whole history, into a new directory?
- What does `git status --short` mean by `??` in front of a file?
- After every run, `ansible-navigator.log` appears in `git status`. What is the right fix?
- A teammate pushed while you were working, and `git push` is rejected with "fetch first". In which order do you run the commands?
- Your password file was committed and pushed last week. Deleting it in a new commit makes it safe. True or false?
- What is the main purpose of a development container?
- You run the development container with `podman run`. Which option lets it log in to the managed hosts with your key?
- Which file makes `ansible-navigator run site.yml` use an execution environment for everyone who clones the project?
- `ansible-lint` reports `yaml[octal-values]: Forbidden implicit octal value "0644"`. What is the fix?