Can I use Kubespray without using kubespray git repo

0 votes
Can I use Kubespray without using kubespray_git_repo? Just a very genuine doubt, my work is done using the git_repo.
Jan 23, 2019 in Ansible by Sparsh
1,008 views

1 answer to this question.

0 votes

Hey @Sparsh, Obviously you can, follow these steps:

pip install ansible
  • Create ansible playbook with these steps
# Copy ``inventory/sample`` as ``inventory/mycluster``
cp -rfp inventory/sample inventory/mycluster

# 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.ini python3 contrib/inventory_builder/inventory.py ${IPS[@]}

# Review and change parameters under ``inventory/mycluster/group_vars``
cat inventory/mycluster/group_vars/all.yml
cat inventory/mycluster/group_vars/k8s-cluster.yml

# Deploy Kubespray with Ansible Playbook
ansible-playbook -i inventory/mycluster/hosts.ini cluster.yml
answered Jan 23, 2019 by Shankar

Related Questions In Ansible

0 votes
1 answer

How can I create a new user using ansible ploybook?

You're switching from the root user. Root ...READ MORE

answered Mar 29, 2018 in Ansible by DareDev
• 6,890 points
919 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Can we use Ansible and Rundeck together, or using either one is enough?

Hi@akhtar, It depends on your requirement. According to ...READ MORE

answered Dec 16, 2020 in Ansible by MD
• 95,460 points
1,795 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,062 views
+2 votes
1 answer
0 votes
1 answer

What all can I do with Ansible?

Ansible is capable of doing a lot ...READ MORE

answered Jan 8, 2019 in Ansible by Takeshi
874 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP