ansi 1 Flashcards
Fall back location
/etc/ansible
env
Command to list environment variables
export JAVA_HOME
Set environment variable
unset
Command to delete environment variable
First precedence
Environment variable
export ANSIBLE_CONFIG=/path/ansible.cfg
Second precedence
Current directory has ansible.cfg
Third precedence
Home directory has .ansible.cfg file
Fourth precedence
Default /etc/ansible/ansible.cfg
-i inventory
Passing the inventory file directly, above all the precedence
[front:children]
Group of groups
—list-host
To list the servers on which command will be execute, it will list only
!
Except
Run the command on all servers except
Escalate sudo privileges
-b
Yellow
State changed
Green
No changes, state was already changed