ansible playbook --extra-vars code example
Example 1: how to define variable in ansible playbook
sudo scutil --set HostName flame01.domain.com
Example 2: how to define variable in ansible playbook
sudo scutil --set ComputerName flame01
Example 3: how to define variable in ansible playbook
dscacheutil -flushcache
Example 4: how to define variable in ansible playbook
sudo scutil --set LocalHostName flame01.local