Advanced Search
Search Results
7 total results found
Deploy a DotNet Service with Ansible
The following shell command will deploy the binaries and appropriate configuration for a service, to an inventoried host: ansible-playbook deploy-service.yml \ -e "var_host=blissdev" \ -e "var_binrepo=oga-built-dev" \ -e "var_servicename=OGA.HostControl.Se...
Ansible Generic Commands
To list hosts in inventory: ansible-inventory --list -y To ping all hosts: ansible all -m ping -u glwhite To scan a playbook for tasks without making changes: ansible-playbook myplaybook.yml --list-tasks To get a list of hosts affected by a playbook: an...
Ansible Command References
Here’s a large list of possible ansible commands: Ansible AD HOC Command Examples - Ansible Cheat Sheet | Devops Junction Introduction to ad hoc commands — Ansible Community Documentation Ansible Playbook Examples - Sample Ansible Playbooks | Devops Junctio...
Debugging Ansible Playbook
Here are command line switches to enable debug logging of an ansible playbook: #Specify the location for the log file export ANSIBLE_LOG_PATH=~/ansible.log #Enable Debug export ANSIBLE_DEBUG=True #Run with 4*v for connection level verbosity ansible-playb...
Managed Host User Setup
For hosts that will be managed by Ansible, or some other automated method, the host will need a user account with proper access. Follow these steps to setup the account and access. NOTE: This page assumes that SSH server is setup.And, that the firewall rules...
Cleaning up Ansible Temp Folders
As Ansible playbooks run, some will fail to cleanup temp folders on the Ansible server. Since the temp folder for most Ansible jobs is configured as '/home/glwhite/Desktop', this will cause an accumulation of folders in that user's Desktop. The folders are n...
Ansible Commands Cheat Sheet
Here’s a list of common ansible commands… Read through this DevOps book pdf for getting Docker and Ansible to work together: https://bjpcjp.github.io/pdfs/devops/ansible-docker.pdf Host Setup Host Setup Playbook This playbook will do basic setup of common ...