Hi,
I’m trying to config ansible file with path of playbook, work ok with inventory with no recognize ansible playbook dir
‘’’
root@ansible Ansible]# ansible-config view
[defaults]
inventory = ./inventories/
remote_user = root
host_key_checking = False
#timeout = 30
retry_files_enabled = False
log_path = ./logs/ansible.log
playbook_dir = ./playbooks/
vars_plugins = ./vars/
[privilege_escalation]
become = True
become_method = sudo
become_ask_pass = False
[root@ansible Ansible]# ansible-playbook playbooks/upgrade1.yml --syntax-check
playbook: playbooks/upgrade1.yml
[root@ansible Ansible]# ansible-playbook upgrade1.yml --limit kernel_test
ERROR! the playbook: upgrade1.yml could not be found
[root@ansible Ansible]# ls /home/jaraujo/Ansible/playbooks
df_cem.yml df_test1.yml ejecutar_df.yaml kernetl.yml ping.yml upgrade.yml upgrade1.yml
‘’’
How can declare my playbook dir and var dir
Thanks