19.06.2021 Views

148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 15 ■ Using an HA Master with OpenShift

Configuring Ansible

Some of the Ansible configuration settings may be modified in the /etc/ansible/ansible.cfg

configuration file. We need to modify some of these settings for OpenShift Ansible. Open the /etc/ansible/

ansible.cfg file in a vi editor.

sudo vi /etc/ansible/ansible.cfg

Add/modify the following settings in the [defaults] header.

sudo= yes

ask_sudo_pass=False

ask_pass=False

remote_user = centos

host_key_checking = False

timeout=0

private_key_file= ~/docker.pem

Some of the settings are shown in ansible.cfg in Figure 15-8.

Figure 15-8. Configuring ansible.cfg

342

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!