Hi Guys sorry new to this and thanks to Antony Stone - sorry if im being dents but im determined to learn this and glad i found such a great group
so actually i did have the lines and took them out - now i am getting the following
[WARNING]: * Failed to parse /etc/ansible/hosts with yaml plugin: YAML
inventory has invalid structure, it should be a dictionary, got: <class
'ansible.parsing.yaml.objects.AnsibleUnicode'>
[WARNING]: * Failed to parse /etc/ansible/hosts with ini plugin:
/etc/ansible/hosts:1: Expected key=value host variable assignment, got:
ubuntu2004
[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: ubuntu2004*
Basically all i am trying to do is the following - im going through th basics
[root@sc-centos-1-2-1-build-1 ansible]# ansible ubuntu2004* -m file -a "path=/home/user1/file2.txt state=touch mode=700"