Hello,
i want to make an Ansible playbook with tasks like this:
---
- name: changehistory
tasks:
- name: replace text with new text
replace:
path: /root/.bashrc
regexp: 'HISTSIZE='
replace: HISTSIZE=10000
When i execute the playbook on an host i get following error:
The error appears to be in ‘/usr/share/ansible/collections/ansible_collections/theforeman/foreman/roles/profiles_history/tasks/main.yml’: line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: changehistory
^ here
Foreman Version: 2.5.3
Foreman_Ansible: 6.3.4
Does anyone have an idea.
Thanks.