Convert Ansible Inventory ini Format to YAML
You can quickly convert an Ansible inventory from the “ini” format to YAML format using this command:
The ramblings of a computer geek
You can quickly convert an Ansible inventory from the “ini” format to YAML format using this command:
We had a problem on Windows 11 client machines which are Entra cloud joined where a user can log on with their PIN, but they are not able to access any on-premise network shares or printers without being prompted with the following message saying: “Windows needs your current credentials Please lock this computer, then unlock … Read more
Cloud Kerberos Trust is an optional mechnanism that allows for a cloud joined Windows 11 client to be able to obtain Kerberos tickets from on-premise Active Directory domain controllers to be able to authenticate to on-premise services/resources, such as file servers or printers; which require Kerberos tickets for authentication. Entra Connect Sync although not directly … Read more
The SSH Agent on Linux holds your SSH keys (and certificates) in memory ready to be used by SSH when connecting to a server. Assuming you already have a key pair, loading the SSH Agent and adding a key is as simple as doing the following. Note I’m assuming for this example your Private Key … Read more
A bit of fun with MTUs (Maximum Transmission Unit) size. We have a Global Protect VPN Gateway, and client machines that connect to the Internet network using the VPN Gateway from a Global Protect VPN Client on their client machine. The VPN was set to the default 1400 bytes for the MTU configuration. It was … Read more
A common issue when using the Ansible “user” module is setting a password. Although you shouldn’t be writing the password direct into your Ansible YML files, unless this is for testing, or you intend to replace them with something to store them securely and retrieve them at runtime, for example Ansible Vault; you need to … Read more
To see a list of listening ports on a host you can run: You can also filter with the below, in this example filtering to port 22 (SSH):
When building playbooks and tasks, you may find you want to check the status of a host before you attempt to perform a particular action upon it. You wouldn’t want it to attempt to perform an action which would fail because something is missing, you’d want it to check first. Although you can use conditionals … Read more
An Arista Network uses two main approaches for the routing and switching of traffic across the network; there are others, but these are the main ones to consider. Raw Routing (using BGP) with Virtual Router and MLAG Leaf Example Pattern The example given here is a simple example pattern of what a Raw Routing – … Read more
Netcat (nc) is a simple, but very useful tool to perform connection tests and scans on your network. Its helpful to quickly check if a port is open (and listening) on a remote machine and that firewall change you made is working as expected. Here i’ll provide some simple examples for you to try. Check … Read more