Ansible Commands:
ansible all -m ping -u mysql -k
ansible-playbook mysql8.yml -k -vvv
ansible-playbook mysql8.yml -vvv
ansible-galaxy - command to manage Ansible roles in shared repostories
ansible-config - View, edit, and manage ansible configuration
ansible-console - a REPL that allows for running ad-hoc tasks against a chosen inventory
ansible-doc - displays information on modules installed in Ansible libraries. It displays a terse listing of plugins and their short descriptions, provides a printout of their DOCUMENTATION strings
ansible-inventory - used to display or dump the configured inventory as Ansible sees it
ansible-playbook - the tool to run Ansible playbooks, which are a configuration and multinode deployment system.
ansible-pull - is used to up a remote copy of ansible on each managed node, each set to run via cron and update playbook source via a source repository. This inverts the default push architecture of ansible into a pull architecture, which has near-limitless scaling potential.
ansible-vault - can encrypt any structured data file used by Ansible.
Use user defined inventory location using -i:
$ ansible-playbook <yaml_file_name>.yml -i /<path_to_hosts_file>/hosts
ansible all -m ping -u mysql -k
ansible-playbook mysql8.yml -k -vvv
ansible-playbook mysql8.yml -vvv
ansible-galaxy - command to manage Ansible roles in shared repostories
ansible-config - View, edit, and manage ansible configuration
ansible-console - a REPL that allows for running ad-hoc tasks against a chosen inventory
ansible-doc - displays information on modules installed in Ansible libraries. It displays a terse listing of plugins and their short descriptions, provides a printout of their DOCUMENTATION strings
ansible-inventory - used to display or dump the configured inventory as Ansible sees it
ansible-playbook - the tool to run Ansible playbooks, which are a configuration and multinode deployment system.
ansible-pull - is used to up a remote copy of ansible on each managed node, each set to run via cron and update playbook source via a source repository. This inverts the default push architecture of ansible into a pull architecture, which has near-limitless scaling potential.
ansible-vault - can encrypt any structured data file used by Ansible.
Use user defined inventory location using -i:
$ ansible-playbook <yaml_file_name>.yml -i /<path_to_hosts_file>/hosts
Thanks for the interesting post, keep continue your good job.
ReplyDeleteHow to Install Docker on Ubuntu 20.04 Easily