Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed changes to job-destinations and ansible-galaxy admin tutorials to prevent ansible-playbook errors. #4308

Merged
merged 2 commits into from
Nov 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions topics/admin/tutorials/job-destinations/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ And of course, Galaxy has an Ansible Role for that.
> ```
> {: data-commit="Add tpv-auto-lint to requirements"}
>
> 1. Install the missing role
> 2. Install the missing role
>
> > <code-in-title>Bash</code-in-title>
> > ```bash
Expand All @@ -190,7 +190,7 @@ And of course, Galaxy has an Ansible Role for that.
> > {: data-cmd="true"}
> {: .code-in}
>
> 2. Change your `group_vars/galaxyservers.yml`. We need to create a new directory where the TPV configs will be stored after linting, and add that directory name as variable for the role. The default name is 'TPV_DO_NOT_TOUCH' for extra safety 😉. If you want a different name, you need to change the `tpv_config_dir_name` variable, too. We also need to create a directory, `tpv_mutable_dir` (a role default variable), where TPV configs are copied before linting.
> 3. Change your `group_vars/galaxyservers.yml`. We need to create a new directory where the TPV configs will be stored after linting, and add that directory name as variable for the role. The default name is 'TPV_DO_NOT_TOUCH' for extra safety 😉. If you want a different name, you need to change the `tpv_config_dir_name` variable, too. We also need to create a directory, `tpv_mutable_dir` (a role default variable), where TPV configs are copied before linting.
>
> {% raw %}
> ```diff
Expand Down Expand Up @@ -220,7 +220,7 @@ And of course, Galaxy has an Ansible Role for that.
> {% endraw %}
> ```
> {: data-commit="Add TPV config dir"}
> 3. Add the role to your `galaxy.yml` playbook.
> 4. Add the role to your `galaxy.yml` playbook.
> {% raw %}
> ```diff
> --- a/galaxy.yml
Expand All @@ -236,14 +236,9 @@ And of course, Galaxy has an Ansible Role for that.
> {% endraw %}
> ```
> {: data-commit="Add tpv-auto-lint role"}
> 4. Run the Galaxy playbook. Because we modified the job configuration, Galaxy will be restarted to reread its config files.
>
> > <code-in-title>Bash</code-in-title>
> > ```bash
> > ansible-playbook galaxy.yml
> > ```
> > {: data-cmd="true"}
> {: .code-in}
> 5. At this point we won't run the modified playbook just yet. Because TPV itself has not yet been installed,
> the tpv_auto_lint role would fail at this point. So first, we'll have to install and configure TPV itself before the
> linter can work.
>
{: .hands_on}
## Configuring TPV
Expand Down
Loading