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

Update install ansible docs #11469

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions docs/ansible/ansible.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ python3 -m venv $VENVDIR
source $VENVDIR/bin/activate
cd $KUBESPRAYDIR
pip install -U -r requirements.txt
pip install -U -r contrib/inventory_builder/requirements.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need this if you don't use the dynamic inventory, please make this clear

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did what

kubespray/README.md

Lines 29 to 33 in 1798989

# Update Ansible inventory file with inventory builder
declare -a IPS=(10.10.1.3 10.10.1.4 10.10.1.5)
CONFIG_FILE=inventory/mycluster/hosts.yaml python3 contrib/inventory_builder/inventory.py ${IPS[@]}
# Review and change parameters under ``inventory/mycluster/group_vars``
describes.
Executing CONFIG_FILE=inventory/z2air/hosts.yaml python contrib/inventory_builder/inventory.py ${IPS[@]} gives the error Not a module named ruamel.

Looking through the issue, I found a solution that requires the ruamel.yaml module to be installed.

A number of people have had the same problem, and I think it's necessary to add the relevant description somewhere correct, but I'm not sure I'm adding it in the right place.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then this line should be in the README just before using the inventory.py script, since it's not for installing ansible, but just to run the script.

```

In case you have a similar message when installing the requirements:
Expand Down