ansible / community

This repository is being archived. See https://github.com/ansible-community/presentations and https://github.com/ansible-community/meetings for the new locations
Apache License 2.0
489 stars 144 forks source link

Error reading config file (/etc/ansible/ansible.cfg): Source contains parsing errors: '<string>' [line 4]: ' 3 \n' #601

Closed momoni33 closed 3 years ago

momoni33 commented 3 years ago

Hi Guys

I am learning Ansible as a newbie so that i can get into the industry of IT, I am learning everything from scratch I have two hosts - hosts 1 and 2 i am trying to create a file from host 1 to host 2 - using ansible when i do this i get the following

Error reading config file (/etc/ansible/ansible.cfg): Source contains parsing errors: '' [line 4]: ' 3 \n' [line 5]: ' 4 # nearly all parameters can be overridden in ansible-playbook\n' [line 6]: ' 5 # or with command line flags. ansible will read ANSIBLE_CONFIG,\n' [line 7]: ' 6 # ansible.cfg in the current working directory, .ansible.cfg in\n' [line 8]: ' 7 # the home directory or /etc/ansible/ansible.cfg, whichever it\n' [line 9]: ' 8 # finds first\n'

bmillemathias commented 3 years ago

Hello

This project is for discussing project related decision, for user support please use the Google group https://groups.google.com/g/ansible-project

Best

florenciohugo commented 3 years ago

hi @momoni33 I´m having the same error, did you find out what is wrong??