ansible-playbook: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/ansible-playbook - from package: ansible

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/ansible-playbook - from package: ansible

You may install the required package with command apt-get install {package}
Error in other languages:
ansible-playbook: bevel nie gevind nie
ansible-playbook: comandă negăsită
ansible-playbook: comando não encontrado
ansible-playbook: commande introuvable
ansible-playbook: command not found
ansible-playbook: käsku ei ole
ansible-playbook: không tìm thấy lệnh
ansible-playbook: komanda nerasta
ansible-playbook: Kommando nicht gefunden.
ansible-playbook: kommandot finns inte
ansible-playbook: komut yok
ansible-playbook: nie znaleziono polecenia
ansible-playbook: níor aimsíodh an t-ordú
ansible-playbook: no se encontró la orden
ansible-playbook: no s'ha trobat l'ordre
ansible-playbook: opdracht niet gevonden
ansible-playbook: parancs nem található
ansible-playbook: perintah tidak ditemukan
ansible-playbook: príkaz nenájdený
ansible-playbook: příkaz nenalezen
ansible-playbook: команда не найдена
ansible-playbook: командата не е открита
ansible-playbook: 命令找不到
ansible-playbook: コマンドが見つかりません