Ansible Vault Implementation — MySQL offline Installation

  • Encrypt specific variables in group_vars files
  • Encrypt specific variables in host_vars files
  • Encrypt hosts file — This contains all the ssh credentials
  • How to Edit the Encrypted variables or Files
  • Along with the above will install the MySQL offline
  1. Download and copy the below RPMs to the library/mysql folder.
Content of the main.yml
Content of the my.cnf
Content of the selinux.cnf
  • Encrypt the whole file “hosts”
  • Encrypt the variable here it will be the “mysql_root_password” inside the file named: host_vars/mysqldb_1.yml
Content of the inventories/production/hosts

--

--

--

Associate Architect — Enterprise Integration | WSO2 Certified Solution Architect | https://ajanthane.blogspot.com/

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

TIL 2021. 02. 23

[Leetcode] Validate Binary Search Tree

It’s time to Consult the Oracle

Thoughts on implementing sustainable development practices

Automate The Boring Stuff With Gulp 4

Adding Sectional Tabs to your Homepage

Prepare for AWS Certification Developer

Connecting the Rock Solid Knowledge WS-Federation stack on identityserver4 to ADFS 4.0

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ajanthan Eliyathamby 🇱🇰

Ajanthan Eliyathamby 🇱🇰

Associate Architect — Enterprise Integration | WSO2 Certified Solution Architect | https://ajanthane.blogspot.com/

More from Medium

Creating a dockerfile

Docker Logging with Filebeat, Elasticsearch and Kibana

NGINX monitoring commands

Kubernetes — An Overview