How to Deploy VM’s in Hyper-V with Ansible
Thought it would be fun to do….. If you can find another public repo that has it working online. Please send me a message so I can kick myself. • This role will allow you to use a vhdx image to deploy vm’s in hyperv • It will use the vm name to create a sub-folder to place the new vm imageRead the Rest…
How to Configure Redhat 7 & 8 Network Interfaces using Ansible
• This role will configure redhat 7 and up interfaces for virtual and physical. (bonded nics, gateways, routes, interface names) How to use this role: 1.You must first download the git repository into your roles directory usually ansible/role/ a.git clone https://github.com/Perfect10NickTailor/setup-redhat-interfaces.git b.https://github.com/Perfect10NickTailor/setup-redhat-interfaces 2.Now you want edit the hosts.client file name file or create it if it doesn’t exist under your “ansible/inventory/dev:staging:prod”Read the Rest…
How to Join Windows Servers to your DC with Ansible
• This role will simply join a new windows server to the domain • You simply need to define the passed parameters in defaults/main.yml indicated below • This role will ask you for the domain admin password at runtime so you will need to know it. Don’t need to worry about vaulting the admin AD password in the code • This role assume yourRead the Rest…
How to deploy OpenNebula Frontends via Ansible
Frontend: This role deploys the OpenNebula Cloud platform frontends via Ansible Ansible Operational Documentation – OpenNebula Frontend Deployments https://opennebula.io/ – OpenNebula is basically a opensource inhouse cloud platform that you can deploy and manage virtual machines using a kvm backend on the host which is scalable. OpenNebula support give you a document to run manual commands, and would not provideRead the Rest…
How to deploy windows firewall rules with Ansible
• This role enable the windows firewall for all 3 profiles (Domain, Private, Public) • You can deploy rules via profile or globally using defaults, group_vars and host_vars • You also can set outbound rules for windows programs How to use this role: 1.You must first download the git repository into your roles directory usually ansible/role/ a.git clone git@github.com:Perfect10NickTailor/ansible-windows-firewall.git . 2.Now you wantRead the Rest…
How to deploy windows shares with Ansible
• This will role will setup a network share on windows • It will also update the user permission on the folder • You can also adjust the folder missions How to use this role: 1.You must first download the git repository into your roles directory usually ansible/role/ a.git clone git@github.com:Perfect10NickTailor/ansible-windows-shares.git . 2.Now you want edit the hosts.client file name file or createRead the Rest…
How to deploy multiple sites in IIS with Ansible
This was fun and interesting little project. Looks like nobody ever really got it working properly, so I decided to do it. • This role will install IIS if its not already installed • It will also configure all the user permissions needed for IIS • It will configure a default application pool • This role will allow you to callRead the Rest…
How to pass an API key with Ansible
https://chronosphere.io/ – Third Party Cloud Monitoring Solution Chronocollector: – https://github.com/Perfect10NickTailor/chronocollector This role deploys the chronocollector management service which sends the data to domain.chronosphere.io For those of you who don’t know what it is. Its basically a cloud monitoring tool that scrapes data on your instances and then you can create dashboards or even export the data to promethus to makeRead the Rest…
How to deploy Netplan with Ansible
Ansible-Netplan: – https://github.com/Perfect10NickTailor/ansible-netplan ●This role will push out the config to the designated host and apply it ●It will make a backup of the previous config before applying the new config, this is just incase your config change had an yaml error and you need to quickly go in and revert back. ●There is a defaults/main.yml file that all theRead the Rest…
How to call a json rest API using Ansible
So a very useful thing to understand is rest api’s and how to call them as a lot of organisations have these and want to integrate them into automation, a popular method is the http method They are very simple calls { GET, POST, PUT, DELETE, PATCH } For the sake of this post. Im going to use commvault publicRead the Rest…
How to Deploy LVM’s with Ansible
Provisioning-LVM-Filesystems: This role is designed to use ansible-merge-vars module. An Ansible plugin to merge all variables in context with a certain suffix (lists or dicts only) and create a new variable that contains the result of this merge. This is an Ansible action plugin, which is basically an Ansible module that runs on the machine running Ansible rather than onRead the Rest…
How to add VM-Tags and Custom attributes with Anisble(VMware)
So whether your using cloud or doing in house deploys. Tagging is a used a lot especially in cloud type environments. Which we will cover in later posts. So a common reason to tag your vm is wanting to have the creation date and the type of server or environment its using, handy for backup solutions & other auditables. .Read the Rest…