set playbook variable command line ansible 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
dscacheutil -flushcache
sudo scutil --set HostName flame01.domain.com
dscacheutil -flushcache